sync
This commit is contained in:
13
app/views/posts/partials/common/_secondary_links.html.erb
Normal file
13
app/views/posts/partials/common/_secondary_links.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= link_to "Listing", posts_path %></li>
|
||||
<li><%= link_to "Upload", new_upload_path %></li>
|
||||
<li>Popular</li>
|
||||
<li>Favorites</li>
|
||||
<li>Subscriptions</li>
|
||||
<li>Changes</li>
|
||||
<li>Approvals</li>
|
||||
<li>Moderate</li>
|
||||
<li>Help</li>
|
||||
</menu>
|
||||
<% end %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="edit">
|
||||
<% unless @current_user.is_contributor? %>
|
||||
<% unless CurrentUser.user.is_contributor? %>
|
||||
<div style="margin-bottom: 1em;">
|
||||
<p>Before editing, read the <%= link_to "how to tag guide", wiki_page_path(:id => "howto:tag") %>.</p>
|
||||
</div>
|
||||
@@ -23,7 +23,7 @@
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<% if @current_user.is_privileged? %>
|
||||
<% if CurrentUser.user.is_privileged? %>
|
||||
<p>
|
||||
<%= f.label :is_note_locked, "Lock notes" %>
|
||||
<%= f.check_box :is_note_locked %>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<%= render :partial => "posts/partials/show/notes", :locals => {:post => post, :notes => post.notes.active} %>
|
||||
<%= image_tag(post.file_url_for(@current_user), :alt => post.tag_string, :width => post.image_width_for(@current_user), :height => post.image_height_for(@current_user), :id => "image") %>
|
||||
<%= image_tag(post.file_url_for(CurrentUser.user), :alt => post.tag_string, :width => post.image_width_for(CurrentUser.user), :height => post.image_height_for(CurrentUser.user), :id => "image") %>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<ul>
|
||||
<%= resize_image_links(post, @current_user) %>
|
||||
<%= resize_image_links(post, CurrentUser.user) %>
|
||||
<li><%= link_to "Favorite", "#" %></li>
|
||||
<li><%= link_to "Unfavorite", "#" %></li>
|
||||
<li><%= link_to "Translate", "#" %></li>
|
||||
<li><%= link_to "Unapprove", "#" %></li>
|
||||
<% if @current_user.is_janitor? %>
|
||||
<% if CurrentUser.user.is_janitor? %>
|
||||
<li><%= link_to "Approve", "#" %></li>
|
||||
<li><%= link_to "Undelete", "#" %></li>
|
||||
<li><%= link_to "Delete", "#" %></li>
|
||||
|
||||
Reference in New Issue
Block a user