-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-6564 Reduce fields where images are shown (#4729)
* Add strip_images to banner * AO3-6564 Bookmarker's notes * AO3-6564 Pseud desc * Abuse and support form description * AO3-6564 Admin post comment * AO3-6564 Add features (overkill?) * AO3-6564 woof * AO3-6564 doggo * AO3-6564 Feedback * AO3-6564 appease dog * Strip images from emails (AdminPost only)
- Loading branch information
Showing
19 changed files
with
191 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
<% # BACK END this seems giant and messy and confusing, pls can we review? | ||
# FRONT END yes let us rewrite this | ||
%> | ||
<% unless current_user && current_user.try(:preference).try(:banner_seen) %> | ||
<% if @admin_banner && @admin_banner.active? %> | ||
<% unless current_user.nil? && session[:hide_banner] %> | ||
<div class="<%= @admin_banner.banner_type %> announcement group" id="admin-banner"> | ||
<blockquote class="userstuff"> | ||
<%=raw sanitize_field(@admin_banner, :content) %> | ||
</blockquote> | ||
<% if current_user.nil? %> | ||
<p class="submit"> | ||
<%= link_to "×".html_safe, current_path_with(hide_banner: true), :class => 'showme action', :title => ts("hide banner") %> | ||
</p> | ||
<% else %> | ||
<%= form_tag end_banner_user_path(current_user), :method => :post, :remote => true do %> | ||
<% if @admin_banner&.active? %> | ||
<% unless session[:hide_banner] || current_user&.preference&.banner_seen %> | ||
<div class="<%= @admin_banner.banner_type %> announcement group" id="admin-banner"> | ||
<blockquote class="userstuff"> | ||
<%= raw sanitize_field(@admin_banner, :content, strip_images: true) %> | ||
</blockquote> | ||
<% if current_user.nil? %> | ||
<p class="submit"> | ||
<%= submit_tag "×".html_safe, :title => ts("hide banner") %> | ||
<%= link_to "×".html_safe, current_path_with(hide_banner: true), class: "showme action", title: ts("hide banner") %> | ||
</p> | ||
<% else %> | ||
<%= form_tag end_banner_user_path(current_user), method: :post, remote: true do %> | ||
<p class="submit"> | ||
<%= submit_tag "×".html_safe, title: ts("hide banner") %> | ||
</p> | ||
<% end %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.