this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

tag creation page

+16 -16
+4
app/assets/stylesheets/application.css
··· 368 368 margin: 0 !important; 369 369 } 370 370 371 + .access-hidden { 372 + display: none; 373 + } 374 + 371 375 /* HTML comment box */ 372 376 373 377 #HCB_comment_box {
-7
app/views/tags/edit.html.erb
··· 4 4 5 5 <%= render "form", tag: @tag %> 6 6 7 - <br> 8 - 9 - <div> 10 - <%= link_to "refresh", @tag %> | 11 - <%= link_to "back", tags_path %> 12 - </div> 13 - 14 7 </div>
+6 -1
app/views/tags/index.html.erb
··· 9 9 <ul> 10 10 <% @tag.each do |tag| %> 11 11 <li> 12 - <%= render tag %> 12 + <%= render tag %> (<span style="color: var(--main-color);"><%= tag.articles.size %><span class="access-hidden"> post(s)</span></span>) 13 13 </li> 14 14 <% end %> 15 15 </ul> 16 16 17 17 <hr> 18 + 19 + <% if user_signed_in? %> 20 + <a href="/tags/new">new tag</a> 21 + <% else %> 22 + <% end %> 18 23 19 24 </div>
+3 -5
app/views/tags/new.html.erb
··· 1 - <h1>New tag</h1> 1 + <div class="main"> 2 2 3 - <%= render "form", tag: @tag %> 3 + <h1>new tag</h1> 4 4 5 - <br> 5 + <%= render "form", tag: @tag %> 6 6 7 - <div> 8 - <%= link_to "Back to tags", tags_path %> 9 7 </div>
+3 -3
config/routes.rb
··· 12 12 Rails.application.routes.draw do 13 13 get "/tags", to: "tags#index" 14 14 # get "tags/:edit" => "tags#edit", as: :edit_tag_path 15 - get "tags/:id" => "tags#show", as: :tag 16 - get "tags/:new" => "tags#new" 15 + # get "tags/:id" => "tags#show" 16 + # get "tags/:new" => "tags#new" 17 17 # resources :tag, path: '', only: [:show] 18 - resources :tags 18 + resources :tags 19 19 end 20 20 21 21 Rails.application.routes.draw do