Allowed creation of tags for all peeps

add info about new posts to irc

fix domain
This commit is contained in:
ubergeek 2018-08-06 13:33:57 -04:00 committed by Ben Harris
parent 08a3d8a5a4
commit 5418785d04
5 changed files with 19 additions and 18 deletions

View File

@ -1,5 +1,5 @@
class TagsController < ApplicationController class TagsController < ApplicationController
before_action :require_logged_in_admin, except: [:index] before_action :require_logged_in_user, except: [:index]
def index def index
@cur_url = "/tags" @cur_url = "/tags"

View File

@ -1,15 +1,15 @@
<div class="box wide"> <div class="box wide">
<div class="legend">about</div> <div class="legend">about</div>
<p>this is a link aggregator for the tildeverse.</p> <p>this is a link aggregator for the <a href="https://tildeverse.org">tildeverse</a>.</p>
<div class="box"> <div class="box">
<h2> Rules </h2> <h2> Rules </h2>
<ol> <ol>
<li>Political links are not allowed, unless directly related technology or tilde issues,ie</li> <li>Political links are not allowed, unless directly related technology or tilde issues,ie</li>
<ul> <ul>
<li> Net Neutrality</li> <li> Net Neutrality</li>
<li> Privacy</li> <li> Privacy</li>
</ul> </ul>
<li>Please limit content to PG-13, mild R rated</li> <li>Please limit content to PG-13, mild R rated</li>
</ol> </ol>
</div> </div>

View File

@ -2,4 +2,7 @@
<div class="legend">chat</div> <div class="legend">chat</div>
<a href="https://tilde.chat">tildeverse irc network here</a><br> <a href="https://tilde.chat">tildeverse irc network here</a><br>
<a href="https://web.tilde.chat">webchat here</a> <a href="https://web.tilde.chat">webchat here</a>
<p>new posts are mirrored to tilde.chat in #meta and #tildeverse</p>
<p>comments are mirrored to #tildeverse</p>
</div> </div>

View File

@ -4,11 +4,9 @@
</div> </div>
<% is_admin = @user.try(:is_admin?) %> <% is_admin = @user.try(:is_admin?) %>
<% if is_admin %> <div>
<div> <%= link_to 'Create New Tag', new_tag_path %>
<%= link_to 'Create New Tag', new_tag_path %> </div>
</div>
<% end %>
<% max_size = @tags.map{|t| t.stories_count }.max %> <% max_size = @tags.map{|t| t.stories_count }.max %>
<% @tags.each do |tag| %> <% @tags.each do |tag| %>
<% mod = (max_size.to_f / ((tag.stories_count.to_f == 0) ? 1 : tag.stories_count.to_f )) %> <% mod = (max_size.to_f / ((tag.stories_count.to_f == 0) ? 1 : tag.stories_count.to_f )) %>

View File

@ -1,6 +1,6 @@
class << Rails.application class << Rails.application
def domain def domain
"links.tildeverse.org" "tilde.news"
end end
def name def name
@ -8,4 +8,4 @@ class << Rails.application
end end
end end
Rails.application.routes.default_url_options[:host] = Rails.application.domain Rails.application.routes.default_url_options[:host] = Rails.application.domain