Reposition the note and user report flags
This commit is contained in:
parent
8587c2a02b
commit
7821bf48ad
3 changed files with 12 additions and 17 deletions
|
@ -2838,10 +2838,6 @@ input.richtext_title[type="text"] {
|
|||
width:475px;
|
||||
}
|
||||
|
||||
.report-button {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.report-disclaimer {
|
||||
background: #fff1f0;
|
||||
color: #d85030;
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
<h2>
|
||||
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
|
||||
<%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
|
||||
<% if current_user && current_user != @note.author %>
|
||||
<%= link_to new_report_url(reportable_id: @note.id, reportable_type: @note.class.name), :title => t('browse.note.report') do %>
|
||||
⚐
|
||||
<% end %>
|
||||
<% end %>
|
||||
</h2>
|
||||
|
||||
<div class="browse-section">
|
||||
|
@ -22,6 +17,11 @@
|
|||
<br/>
|
||||
<%= note_event(@note.status, @note.closed_at, @note_comments.last.author) %>
|
||||
<% end %>
|
||||
<% if current_user && current_user != @note.author %>
|
||||
<%= link_to new_report_url(reportable_id: @note.id, reportable_type: @note.class.name), :title => t('browse.note.report') do %>
|
||||
⚐
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% if @note_comments.find { |comment| comment.author.nil? } -%>
|
||||
|
|
|
@ -102,6 +102,13 @@
|
|||
</li>
|
||||
<% end %>
|
||||
|
||||
<% if current_user and @this_user.id != current_user.id %>
|
||||
<li>
|
||||
<%= link_to new_report_url(reportable_id: @this_user.id, reportable_type: @this_user.class.name), :title => t('user.view.report') do %>
|
||||
⚐
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<% end %>
|
||||
|
@ -154,14 +161,6 @@
|
|||
</p>
|
||||
</div>
|
||||
|
||||
<% if current_user and @this_user.id != current_user.id %>
|
||||
<div class="report-button">
|
||||
<%= link_to new_report_url(reportable_id: @this_user.id, reportable_type: @this_user.class.name), :title => t('user.view.report') do %>
|
||||
⚐
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="user-description richtext"><%= @this_user.description.to_html %></div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue