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
before_action :require_logged_in_admin, except: [:index]
before_action :require_logged_in_user, except: [:index]
def index
@cur_url = "/tags"

View File

@ -1,15 +1,15 @@
<div class="box wide">
<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">
<h2> Rules </h2>
<ol>
<li>Political links are not allowed, unless directly related technology or tilde issues,ie</li>
<ul>
<li> Net Neutrality</li>
<li> Privacy</li>
</ul>
<li>Please limit content to PG-13, mild R rated</li>
</ol>
<h2> Rules </h2>
<ol>
<li>Political links are not allowed, unless directly related technology or tilde issues,ie</li>
<ul>
<li> Net Neutrality</li>
<li> Privacy</li>
</ul>
<li>Please limit content to PG-13, mild R rated</li>
</ol>
</div>

View File

@ -2,4 +2,7 @@
<div class="legend">chat</div>
<a href="https://tilde.chat">tildeverse irc network here</a><br>
<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>

View File

@ -4,11 +4,9 @@
</div>
<% is_admin = @user.try(:is_admin?) %>
<% if is_admin %>
<div>
<%= link_to 'Create New Tag', new_tag_path %>
</div>
<% end %>
<div>
<%= link_to 'Create New Tag', new_tag_path %>
</div>
<% max_size = @tags.map{|t| t.stories_count }.max %>
<% @tags.each do |tag| %>
<% 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
def domain
"links.tildeverse.org"
"tilde.news"
end
def name
@ -8,4 +8,4 @@ class << Rails.application
end
end
Rails.application.routes.default_url_options[:host] = Rails.application.domain
Rails.application.routes.default_url_options[:host] = Rails.application.domain