Reposition the note and user report flags

This commit is contained in:
Andy Allan 2018-02-28 15:43:22 +08:00
parent 8587c2a02b
commit 7821bf48ad
3 changed files with 12 additions and 17 deletions

View file

@ -2838,10 +2838,6 @@ input.richtext_title[type="text"] {
width:475px;
}
.report-button {
float:right;
}
.report-disclaimer {
background: #fff1f0;
color: #d85030;

View file

@ -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 %>
&nbsp;&#9872;
<% 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 %>
&nbsp;&#9872;
<% end %>
<% end %>
</div>
<% if @note_comments.find { |comment| comment.author.nil? } -%>

View file

@ -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 %>
&nbsp;&#9872;
<% 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 %>
&nbsp;&#9872;
<% end %>
</div>
<% end %>
<div class="user-description richtext"><%= @this_user.description.to_html %></div>
</div>