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:
@@ -103,9 +103,13 @@ module ApplicationHelper
|
||||
link_to search, posts_path(tags: search)
|
||||
end
|
||||
|
||||
def link_to_wiki(*wiki_titles, **options)
|
||||
def link_to_wiki(text, title)
|
||||
link_to text, wiki_page_path(title)
|
||||
end
|
||||
|
||||
def link_to_wikis(*wiki_titles, last_word_connector: ", or", **options)
|
||||
links = wiki_titles.map do |title|
|
||||
link_to title.tr("_", " "), wiki_pages_path(title: title)
|
||||
link_to title.tr("_", " "), wiki_page_path(title)
|
||||
end
|
||||
|
||||
to_sentence(links, **options)
|
||||
|
||||
@@ -85,7 +85,7 @@ module PostsHelper
|
||||
html << link_to(text, posts_path(:tags => "parent:#{post.parent_id}"))
|
||||
end
|
||||
|
||||
html << " (#{link_to("learn more", wiki_pages_path(:title => "help:post_relationships"))}) "
|
||||
html << " (#{link_to_wiki "learn more", "help:post_relationships"}) "
|
||||
|
||||
html << link_to("« hide".html_safe, "#", :id => "has-parent-relationship-preview-link")
|
||||
|
||||
@@ -99,7 +99,7 @@ module PostsHelper
|
||||
text = children_post_set.children.count == 1 ? "a child" : "#{children_post_set.children.count} children"
|
||||
html << link_to(text, posts_path(:tags => "parent:#{post.id}"))
|
||||
|
||||
html << " (#{link_to("learn more", wiki_pages_path(:title => "help:post_relationships"))}) "
|
||||
html << " (#{link_to_wiki "learn more", "help:post_relationships"}) "
|
||||
|
||||
html << link_to("« hide".html_safe, "#", :id => "has-children-relationship-preview-link")
|
||||
|
||||
|
||||
@@ -7,32 +7,32 @@ module TagsHelper
|
||||
if tag.antecedent_alias
|
||||
html << "<p class='fineprint'>This tag has been aliased to "
|
||||
html << link_to(tag.antecedent_alias.consequent_name, show_or_new_wiki_pages_path(:title => tag.antecedent_alias.consequent_name))
|
||||
html << " (#{link_to "learn more", wiki_pages_path(title: "help:tag_aliases")}).</p>"
|
||||
html << " (#{link_to_wiki "learn more", "help:tag_aliases"}).</p>"
|
||||
end
|
||||
|
||||
if tag.consequent_aliases.present?
|
||||
html << "<p class='fineprint'>The following tags are aliased to this tag: "
|
||||
html << raw(tag.consequent_aliases.map {|x| link_to(x.antecedent_name, show_or_new_wiki_pages_path(:title => x.antecedent_name))}.join(", "))
|
||||
html << " (#{link_to "learn more", wiki_pages_path(title: "help:tag_aliases")}).</p>"
|
||||
html << " (#{link_to_wiki "learn more", "help:tag_aliases"}).</p>"
|
||||
end
|
||||
|
||||
automatic_tags = TagImplication.automatic_tags_for([tag.name])
|
||||
if automatic_tags.present?
|
||||
html << "<p class='fineprint'>This tag automatically adds "
|
||||
html << raw(automatic_tags.map {|x| link_to(x, show_or_new_wiki_pages_path(:title => x))}.join(", "))
|
||||
html << " (#{link_to "learn more", wiki_pages_path(title: "help:autotags")}).</p>"
|
||||
html << " (#{link_to_wiki "learn more", "help:autotags"}).</p>"
|
||||
end
|
||||
|
||||
if tag.antecedent_implications.present?
|
||||
html << "<p class='fineprint'>This tag implicates "
|
||||
html << raw(tag.antecedent_implications.map {|x| link_to(x.consequent_name, show_or_new_wiki_pages_path(:title => x.consequent_name))}.join(", "))
|
||||
html << " (#{link_to "learn more", wiki_pages_path(title: "help:tag_implications")}).</p>"
|
||||
html << " (#{link_to_wiki "learn more", "help:tag_implications"}).</p>"
|
||||
end
|
||||
|
||||
if tag.consequent_implications.present?
|
||||
html << "<p class='fineprint'>The following tags implicate this tag: "
|
||||
html << raw(tag.consequent_implications.map {|x| link_to(x.antecedent_name, show_or_new_wiki_pages_path(:title => x.antecedent_name))}.join(", "))
|
||||
html << " (#{link_to "learn more", wiki_pages_path(title: "help:tag_implications")}).</p>"
|
||||
html << " (#{link_to_wiki "learn more", "help:tag_implications"}).</p>"
|
||||
end
|
||||
|
||||
html.html_safe
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<p>If the artist of this image posted some interesting additional information about this work, you can copy it here. <%= link_to "View help.", wiki_pages_path(:search => {:title => "help:artist_commentary"}) %></p>
|
||||
<p>If the artist of this image posted some interesting additional information about this work, you can copy it here (<%= link_to_wiki "learn more", "help:artist_commentary" %>).</p>
|
||||
|
||||
<form id="fetch-commentary" class="simple_form">
|
||||
<div class="input">
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
<%= subnav_link_to "Listing", artist_commentaries_path %>
|
||||
<%= subnav_link_to "Recent changes", artist_commentary_versions_path %>
|
||||
<%= subnav_link_to "Translation requests", artist_commentaries_path(:search => {:post_tags_match => "commentary_request"}) %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:artist_commentary") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:artist_commentary") %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="p-index-by-post">
|
||||
<% if !CurrentUser.user.is_builder? %>
|
||||
<div style="margin-bottom: 1em;">
|
||||
<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>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
<%= quick_search_form_for(:body_matches, comments_path, "comments") %>
|
||||
<%= subnav_link_to "Listing", comments_path(:group_by => "post") %>
|
||||
<%= subnav_link_to "Search", search_comments_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:comments") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:comments") %>
|
||||
<% end %>
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
<%= subnav_link_to "New", new_dmail_path %>
|
||||
<%= subnav_link_to "Mark all as read", {:controller => "dmails", :action => "mark_all_as_read"}, :method => :post, :remote => true %></li>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(title: "help:dmail") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:dmail") %>
|
||||
<% end %>
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
<% end %>
|
||||
<div id="<%= preview_id %>" class="dtext-preview prose"></div>
|
||||
</div>
|
||||
<span class="hint">All text is formatted using <%= link_to "DText", wiki_pages_path(:title => "help:dtext"), :target => "_blank" %></span>
|
||||
<span class="hint">All text is formatted using <%= link_to_wiki "DText", "help:dtext" %></span>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<% if CurrentUser.is_member? %>
|
||||
<%= subnav_link_to "New", new_favorite_group_path %>
|
||||
<% end %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:favorite_groups") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:favorite_groups") %>
|
||||
|
||||
<% if @favorite_group && !@favorite_group.new_record? %>
|
||||
<li>|</li>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<% end %>
|
||||
|
||||
<%= subnav_link_to "Search", search_forum_posts_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:forum") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:forum") %>
|
||||
<% if CurrentUser.is_member? && @forum_topic && !@forum_topic.new_record? %>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Reply", new_forum_post_path(:topic_id => @forum_topic.id) %>
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
Posts with score -3 or lower are marked red.
|
||||
Posts with score 3 or higher are marked green.
|
||||
</p>
|
||||
<p>Posts with the <%= link_to_wiki(*Danbooru.config.modqueue_quality_warning_tags, last_word_connector: ", or ") %> tags are marked in yellow.</p>
|
||||
<p>Posts with the <%= link_to_wiki(*Danbooru.config.modqueue_sample_warning_tags, last_word_connector: ", or ") %> tags are marked in light red.</p>
|
||||
<p>Posts with the <%= link_to_wikis(*Danbooru.config.modqueue_quality_warning_tags) %> tags are marked in yellow.</p>
|
||||
<p>Posts with the <%= link_to_wikis(*Danbooru.config.modqueue_sample_warning_tags) %> tags are marked in light red.</p>
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
<%= subnav_link_to "Search", search_notes_path %>
|
||||
<%= subnav_link_to "History", note_versions_path %>
|
||||
<%= subnav_link_to "Requests", posts_path(:tags => "translation_request") %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:notes") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:notes") %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%= subnav_link_to "Gallery", gallery_pools_path %>
|
||||
<%= subnav_link_to "Listing", pools_path %>
|
||||
<%= subnav_link_to "New", new_pool_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:search => {:title => "help:pools"}) %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:pools") %>
|
||||
<% if @pool && !@pool.new_record? %>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Show", pool_path(@pool) %>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<section>
|
||||
<ul>
|
||||
<li><h1>Posts</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:posts")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:posts" %></li>
|
||||
<li><%= link_to("Listing", posts_path) %></li>
|
||||
<li><%= link_to("Upload", new_upload_path) %></li>
|
||||
<li><%= link_to("Upload Listing", uploads_path) %></li>
|
||||
@@ -34,13 +34,13 @@
|
||||
<li><%= link_to("Bug Reports", Danbooru.config.issues_url) %></li>
|
||||
<li><%= link_to("Keyboard Shortcuts", keyboard_shortcuts_path) %></li>
|
||||
<li><%= link_to("Bookmarklet", bookmarklet_path) %></li>
|
||||
<li><%= link_to("User Scripts", wiki_pages_path(title: "about:userscripts")) %></li>
|
||||
<li><%= link_to("API Documentation", wiki_pages_path(:title => "help:api")) %></li>
|
||||
<li><%= link_to_wiki "User Scripts", "about:userscripts" %></li>
|
||||
<li><%= link_to_wiki "API Documentation", "help:api" %></li>
|
||||
<li><%= link_to("Similar Images Search", iqdb_queries_path) %></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Artists</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:artists")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:artists" %></li>
|
||||
<li><%= link_to("Listing", artists_path) %></li>
|
||||
<li><%= link_to("Banned", banned_artists_path) %></li>
|
||||
<li><%= link_to("Changes", artist_versions_path) %></li>
|
||||
@@ -49,8 +49,8 @@
|
||||
<section>
|
||||
<ul>
|
||||
<li><h1>Tags</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:tags")) %></li>
|
||||
<li><%= link_to("Cheat sheet", wiki_pages_path(:title => "help:cheatsheet")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:tags" %></li>
|
||||
<li><%= link_to_wiki "Cheat sheet", "help:cheatsheet" %></li>
|
||||
<li><%= link_to("Aliases", tag_aliases_path) %></li>
|
||||
<li><%= link_to("Implications", tag_implications_path) %></li>
|
||||
<li><%= link_to("Listing", tags_path) %></li>
|
||||
@@ -58,14 +58,14 @@
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Notes</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:notes")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:notes" %></li>
|
||||
<li><%= link_to("Listing", notes_path) %></li>
|
||||
<li><%= link_to("Search", search_notes_path) %></li>
|
||||
<li><%= link_to("Changes", note_versions_path) %></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Pools</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:pools")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:pools" %></li>
|
||||
<li><%= link_to("Listing", pools_path) %></li>
|
||||
<li><%= link_to("Gallery", gallery_pools_path) %></li>
|
||||
<% if PoolArchive.enabled? %>
|
||||
@@ -85,7 +85,7 @@
|
||||
<section>
|
||||
<ul>
|
||||
<li><h1>Comments</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:comments")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:comments" %></li>
|
||||
<li><%= link_to("Listing", comments_path) %></li>
|
||||
<li><%= link_to("Search", search_comments_path) %></li>
|
||||
<li><%= link_to("Votes", comment_votes_path) %></li>
|
||||
@@ -93,7 +93,7 @@
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Forum</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:forum")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:forum" %></li>
|
||||
<li><%= link_to("Listing", forum_topics_path) %></li>
|
||||
<li><%= link_to("Search", search_forum_posts_path) %></li>
|
||||
<li><%= link_to("Votes", forum_post_votes_path) %></li>
|
||||
@@ -101,14 +101,14 @@
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Wiki</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:wiki")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:wiki" %></li>
|
||||
<li><%= link_to("Listing", wiki_pages_path) %></li>
|
||||
<li><%= link_to("Search", search_wiki_pages_path) %></li>
|
||||
<li><%= link_to("Changes", wiki_page_versions_path) %></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Artist commentary</h1></li>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:artist_commentary")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:artist_commentary" %></li>
|
||||
<li><%= link_to("Listing", artist_commentaries_path) %></li>
|
||||
<li><%= link_to("Search", search_artist_commentaries_path) %></li>
|
||||
<li><%= link_to("Changes", artist_commentary_versions_path) %></li>
|
||||
@@ -139,7 +139,7 @@
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<li><%= link_to("Dashboard", moderator_dashboard_path) %></li>
|
||||
<% end %>
|
||||
<li><%= link_to("Help", wiki_pages_path(:title => "help:users")) %></li>
|
||||
<li><%= link_to_wiki "Help", "help:users" %></li>
|
||||
<li><%= link_to("Listing", users_path) %></li>
|
||||
<li><%= link_to("Search", search_users_path) %></li>
|
||||
<li><%= link_to("Bans", bans_path) %></li>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<ul>
|
||||
<li>Danbooru reserves the right to delete or modify your account, or any content you have posted to the site.</li>
|
||||
<li>You will make a best faith effort to upload only high quality anime-related images.</li>
|
||||
<li>You have read the <%= link_to "tagging guidelines", wiki_pages_path(:title => "help:tags") %>.</li>
|
||||
<li>You have read the <%= link_to_wiki "tagging guidelines", "help:tags" %>.</li>
|
||||
</ul>
|
||||
|
||||
<div class="section">
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
<%= subnav_link_to "Listing", tag_aliases_path %>
|
||||
<%= subnav_link_to "MetaSearch", meta_searches_tags_path %>
|
||||
<%= subnav_link_to "Request alias", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:tag_aliases") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:tag_aliases") %>
|
||||
<% end %>
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
<%= subnav_link_to "Listing", tag_implications_path %>
|
||||
<%= subnav_link_to "MetaSearch", meta_searches_tags_path %>
|
||||
<%= subnav_link_to "Request implication", new_bulk_update_request_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:tag_implications") %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:tag_implications") %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<%= subnav_link_to "Listing", tags_path %>
|
||||
<%= subnav_link_to "MetaSearch", meta_searches_tags_path %>
|
||||
<%= subnav_link_to "Related tags", related_tag_path %>
|
||||
<%= subnav_link_to "Cheatsheet", wiki_pages_path(:search => {:title => "help:cheatsheet"}) %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:search => {:title => "help:tags"}) %>
|
||||
<%= subnav_link_to "Cheatsheet", wiki_page_path("help:cheatsheet") %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path("help:tags") %>
|
||||
<% if @tag %>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Posts (#{@tag.post_count})", posts_path(:tags => @tag.name) %>
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<%= subnav_link_to "New", new_upload_path %>
|
||||
<%= subnav_link_to "Batch Upload", batch_uploads_path %>
|
||||
<%= subnav_link_to "Similar Images Search", iqdb_queries_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(search: { title: "help:upload" }) %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:upload") %>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="fixed-width-container" id="negative-policy">
|
||||
<p>Before submitting negative feedback, you must make a good faith effort at communicating with the user (through DMails) to tell them what they are doing wrong. It is unfair to drop a negative record on them without warning. If you have not done this with at least two weeks of notice, the user can dispute the feedback and have it removed. You will need to provide evidence that your feedback is accurate and you gave advanced warning, so you should collect any relevant links and include them in your feedback.</p>
|
||||
|
||||
<p>Please consult <%= link_to "the guide", show_or_new_wiki_pages_path(title: "help:user_records") %> for advice on how to write constructive feedback.</p>
|
||||
<p>Please consult <%= link_to_wiki "the guide", "help:user_records" %> for advice on how to write constructive feedback.</p>
|
||||
</div>
|
||||
|
||||
<div id="preview">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<%= subnav_link_to "Listing", user_name_change_requests_path %>
|
||||
<%= subnav_link_to "New", new_user_name_change_request_path %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:search => {:title => "help:user_name_change_requests"}) %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:user_name_change_requests") %>
|
||||
<% end %>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
<tr>
|
||||
<th>Upload Limit</th>
|
||||
<td><%= presenter.upload_limit(self) %> (<%= link_to "help", wiki_pages_path(title: "about:upload_limits") %>)</td>
|
||||
<td><%= presenter.upload_limit(self) %> (<%= link_to_wiki "help", "about:upload_limits" %>)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -193,7 +193,7 @@
|
||||
<th>API Key</th>
|
||||
<td>
|
||||
<%= link_to (CurrentUser.api_key ? "View" : "Generate"), user_api_key_path(CurrentUser.user) %>
|
||||
(<%= link_to "help", wiki_pages_path(title: "help:api") %>)
|
||||
(<%= link_to_wiki "help", "help:api" %>)
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<h1 id="wiki-page-title"><%= @wiki_page.pretty_title %></h1>
|
||||
<% end %>
|
||||
|
||||
<%= f.input :other_names_string, as: :text, input_html: { size: "30x1" }, label: "Other names (#{link_to "help", wiki_pages_path(title: "help:translated_tags")})".html_safe, hint: "Names used for this tag on other sites such as Pixiv. Separate with spaces." %>
|
||||
<%= f.input :other_names_string, as: :text, input_html: { size: "30x1" }, label: "Other names (#{link_to_wiki "help", "help:translated_tags"})".html_safe, hint: "Names used for this tag on other sites such as Pixiv. Separate with spaces." %>
|
||||
|
||||
<%= dtext_field "wiki_page", "body" %>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<% if CurrentUser.is_member? %>
|
||||
<%= subnav_link_to "New", new_wiki_page_path %>
|
||||
<% end %>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:search => {:title => "help:wiki"}) %>
|
||||
<%= subnav_link_to "Help", wiki_page_path("help:wiki") %>
|
||||
<% if @wiki_page && @wiki_page.new_record? && @wiki_page.try(:tag).present? %>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Posts (#{@wiki_page.tag.post_count})", posts_path(:tags => @wiki_page.title) %>
|
||||
|
||||
Reference in New Issue
Block a user