Archived
remove link to current page in navigation → path → stuff
This commit is contained in:
@@ -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,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,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,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 %>">
|
||||||
|
|||||||
Reference in New Issue
Block a user