remove link to current page in navigation → path → stuff

This commit is contained in:
jomo
2014-10-02 23:11:07 +02:00
parent be6ccf5e7b
commit b91bb8e0aa
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<% title "#{@post.title}" %> <% title "#{@post.title}" %>
<%= link_to "News", blogposts_path %><%= link_to @post.title %> <%= link_to "News", blogposts_path %><%= @post.title %>
<h1><%= truncate(@post.title, length: 60, omission: " …") %></h1> <h1><%= truncate(@post.title, length: 60, omission: " …") %></h1>
<div class="item-group post with-avatar" id="post-<%= @post.id %>"> <div class="item-group post with-avatar" id="post-<%= @post.id %>">
+1 -1
View File
@@ -1,6 +1,6 @@
<% title "Edit Forum: #{@forum.name}" %> <% title "Edit Forum: #{@forum.name}" %>
<%= link_to "(Edit) #{@forum.group.name}", edit_forumgroup_path(@forum.group) %><%= link_to @forum.name, @forum %> <%= link_to "(Edit) #{@forum.group.name}", edit_forumgroup_path(@forum.group) %><%= @forum.name %>
<h1>Edit Forum</h1> <h1>Edit Forum</h1>
<% role_selection = Role.all_from_to(:normal, :admin).collect{|p|[p.name, p.id]} %> <% role_selection = Role.all_from_to(:normal, :admin).collect{|p|[p.name, p.id]} %>
<%= form_for @forum do |f|%> <%= form_for @forum do |f|%>
+1 -1
View File
@@ -1,6 +1,6 @@
<% title @forum.name %> <% title @forum.name %>
<%= link_to @forum.group, forumgroup_path(@forum.group) %><%= link_to @forum %> <%= link_to @forum.group, forumgroup_path(@forum.group) %><%= @forum %>
<h1><%= @forum %></h1> <h1><%= @forum %></h1>
<% if @forum.can_write?(current_user) %> <% if @forum.can_write?(current_user) %>
+1 -1
View File
@@ -1,4 +1,4 @@
<%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %><%= link_to @thread.forum, @thread.forum %><%= link_to truncate(@thread.title, length: 60, omission: " …") %> <%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %><%= link_to @thread.forum, @thread.forum %><%=truncate(@thread.title, length: 60, omission: " …") %>
<h1><%= title @thread.title %></h1> <h1><%= title @thread.title %></h1>
<div class="item-group thread with-avatar" id="thread-<%= @thread.id %>"> <div class="item-group thread with-avatar" id="thread-<%= @thread.id %>">