Standardize links to wiki help pages.
* Fix inconsistencies in how wiki pages were linked. * Link directly to the wiki instead of to a title search that is expected to redirect to the wiki.
This commit is contained in:
@@ -14,5 +14,5 @@
|
||||
<% if CurrentUser.can_approve_posts? %>
|
||||
<%= subnav_link_to "Moderate", moderator_post_queue_path %>
|
||||
<% end %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:posts") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:posts") %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="blacklist-box" class="sidebar-blacklist">
|
||||
<h1>Blacklisted (<%= link_to "help", wiki_pages_path(:title => "help:blacklists") %>)</h1>
|
||||
<h1>Blacklisted (<%= link_to_wiki "help", "help:blacklists" %>)</h1>
|
||||
<ul id="blacklist-list" class="list-bulleted"></ul>
|
||||
<%= link_to "Disable all", "#", :id => "disable-all-blacklists", :style => "display: none;" %>
|
||||
<%= link_to "Re-enable all", "#", :id => "re-enable-all-blacklists", :style => "display: none;" %>
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
<% if post_set.hidden_posts.present? %>
|
||||
<div class="fineprint hidden-posts-notice">
|
||||
<% if post_set.banned_posts.present? %>
|
||||
<%= post_set.banned_posts.size %> post(s) were removed from this page at the artist's request (<%= link_to "learn more", wiki_pages_path(title: "banned_artist") %>).<br>
|
||||
<%= post_set.banned_posts.size %> post(s) were removed from this page at the artist's request (<%= link_to_wiki "learn more", "banned_artist" %>).<br>
|
||||
<% end %>
|
||||
|
||||
<% if post_set.censored_posts.present? %>
|
||||
<%= post_set.censored_posts.size %> post(s) on this page require a <%= link_to "Gold account", new_user_upgrade_path %> to view (<%= link_to "learn more", wiki_pages_path(title: "help:censored_tags") %>).<br>
|
||||
<%= post_set.censored_posts.size %> post(s) on this page require a <%= link_to "Gold account", new_user_upgrade_path %> to view (<%= link_to_wiki "learn more", "help:censored_tags" %>).<br>
|
||||
<% end %>
|
||||
|
||||
<% if post_set.safe_posts.present? %>
|
||||
<%= post_set.safe_posts.size %> post(s) on this page were hidden by safe mode (<%= Danbooru.config.app_name %>). Go to <%= link_to "Danbooru", "https://danbooru.donmai.us" %> or disable safe mode to view (<%= link_to "learn more", wiki_pages_path(title: "help:user_settings") %>).<br>
|
||||
<%= post_set.safe_posts.size %> post(s) on this page were hidden by safe mode (<%= Danbooru.config.app_name %>). Go to <%= link_to "Danbooru", "https://danbooru.donmai.us" %> or disable safe mode to view (<%= link_to_wiki "learn more", "help:user_settings" %>).<br>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<% elsif post.levelblocked? -%>
|
||||
<p><%= link_to("You need a gold account to see this image", new_user_upgrade_path) %>.</p>
|
||||
<% elsif post.safeblocked? -%>
|
||||
<p>This image is unavailable on safe mode (<%= Danbooru.config.app_name %>). Go to <%= link_to("Danbooru", "https://danbooru.donmai.us") %> or disable safe mode to view (<%= link_to("learn more", wiki_pages_path(title: "help:user_settings")) -%>).</p>
|
||||
<p>This image is unavailable on safe mode (<%= Danbooru.config.app_name %>). Go to <%= link_to("Danbooru", "https://danbooru.donmai.us") %> or disable safe mode to view (<%= link_to_wiki "learn more", "help:user_settings" %>).</p>
|
||||
<% elsif post.is_flash? -%>
|
||||
<%= render("posts/partials/show/flash", post: post) -%>
|
||||
<% elsif post.is_video? -%>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
|
||||
<div class="notice notice-small post-notice post-notice-flagged">
|
||||
<p>This post was flagged for review (<%= link_to "learn more", wiki_pages_path(:title => "howto:flag") %>): </p>
|
||||
<p>This post was flagged for review (<%= link_to_wiki "learn more", "howto:flag" %>): </p>
|
||||
|
||||
<%= render "post_flags/reasons", flags: post.flags %>
|
||||
</div>
|
||||
@@ -33,9 +33,9 @@
|
||||
<div class="notice notice-small post-notice post-notice-pending">
|
||||
<% if post.is_pending? %>
|
||||
This post is pending approval.
|
||||
(<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>)
|
||||
(<%= link_to_wiki "learn more", "about:mod_queue" %>)
|
||||
<% else %>
|
||||
This post was flagged and is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>)
|
||||
This post was flagged and is pending approval (<%= link_to_wiki "learn more", "about:mod_queue" %>)
|
||||
<% end %>
|
||||
|
||||
<%= render "post_disapprovals/counts", :disapprovals => post.disapprovals, :post => post %>
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
<section id="comments">
|
||||
<% if !CurrentUser.user.is_builder? %>
|
||||
<h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2>
|
||||
<h2>Before commenting, read the <%= link_to_wiki "how to comment guide", "howto:comment" %>.</h2>
|
||||
<% end %>
|
||||
<%= render "comments/partials/index/list", comments: @comments, post: @post, page: :post %>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user