From 67264f8a5168bf3d57e1cbaced124cf88698aa9b Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 21 Dec 2011 18:59:32 -0500 Subject: [PATCH] fix links --- app/views/ip_bans/index.html.erb | 2 +- app/views/moderator/tags/edit.html.erb | 10 ++--- app/views/static/site_map.html.erb | 55 +++++++++++++++++--------- 3 files changed, 43 insertions(+), 24 deletions(-) diff --git a/app/views/ip_bans/index.html.erb b/app/views/ip_bans/index.html.erb index 248ee6787..573dc6de4 100644 --- a/app/views/ip_bans/index.html.erb +++ b/app/views/ip_bans/index.html.erb @@ -2,7 +2,7 @@

IP Bans

- +
diff --git a/app/views/moderator/tags/edit.html.erb b/app/views/moderator/tags/edit.html.erb index 2f6f6b4a2..a5eff76cf 100644 --- a/app/views/moderator/tags/edit.html.erb +++ b/app/views/moderator/tags/edit.html.erb @@ -1,10 +1,10 @@
-

Edit Tags

+

Mass Edit

- <%= form_tag(moderator_tag_path, :method => :put) do %> + <%= form_tag(moderator_tag_path, :method => :put, :class => "simple_form") do %>
- + <%= text_field :tag, :antecedent, :value => params[:antecedent] %>
@@ -14,12 +14,12 @@
- <%= submit_tag %> + <%= submit_tag "Submit" %>
<% end %>
<% content_for(:page_title) do %> - Edit Tag - <%= Danbooru.config.app_name %> + Mass Edit - <%= Danbooru.config.app_name %> <% end %> diff --git a/app/views/static/site_map.html.erb b/app/views/static/site_map.html.erb index d7d35f355..f76c78989 100644 --- a/app/views/static/site_map.html.erb +++ b/app/views/static/site_map.html.erb @@ -6,14 +6,28 @@
  • Posts

  • <%= link_to("Help", wiki_pages_path(:title => "help:posts")) %>
  • <%= link_to("Listing", posts_path) %>
  • -
  • <%= link_to("Recent Changes", post_versions_path) %>
  • +
  • <%= link_to("Changes", post_versions_path) %>
  • <%= link_to("Upload", new_upload_path) %>
  • +
  • <%= link_to("Appeals", post_appeals_path) %>
  • +
  • <%= link_to("Flags", post_flags_path) %>
  • + <% if CurrentUser.is_janitor? %> +
  • <%= link_to("Moderate", moderator_post_queue_path) %>
  • + <% end %> + <% if CurrentUser.is_admin? %> +
  • <%= link_to("Mass Edit", edit_moderator_tag_path) %>
  • + <% end %> +
      @@ -22,23 +36,20 @@
    • <%= link_to("Cheat sheet", wiki_pages_path(:title => "help:cheatsheet")) %>
    • <%= link_to("Aliases", tag_aliases_path) %>
    • <%= link_to("Implications", tag_implications_path) %>
    • +
    • <%= link_to("Subscriptions",tag_subscriptions_path) %>
    • <%= link_to("Listing", tags_path) %>
    • Notes

    • <%= link_to("Help", wiki_pages_path(:title => "help:notes")) %>
    • -
    • <%= link_to("History", note_versions_path) %>
    • +
    • <%= link_to("Changes", note_versions_path) %>
    • <%= link_to("Listing", notes_path) %>
    -
      -
    • Artists

    • -
    • <%= link_to("Help", wiki_pages_path(:title => "help:artists")) %>
    • -
    • <%= link_to("Listing", artists_path) %>
    • -
    • Pools

    • <%= link_to("Help", wiki_pages_path(:title => "help:pools")) %>
    • <%= link_to("Listing", pools_path) %>
    • +
    • <%= link_to("Changes", pool_versions_path) %>
    @@ -57,32 +68,40 @@
  • Wiki

  • <%= link_to("Help", wiki_pages_path(:title => "help:wiki")) %>
  • <%= link_to("Listing", wiki_pages_path) %>
  • -
  • <%= link_to("Recent Changes", wiki_page_versions_path) %>
  • +
  • <%= link_to("Changes", wiki_page_versions_path) %>
    • Users

    • + <% if CurrentUser.is_janitor? %> +
    • <%= link_to("Dashboard", moderator_dashboard_path) %>
    • + <% end %>
    • <%= link_to("Help", wiki_pages_path(:title => "help:users")) %>
    • <%= link_to("Bans", bans_path) %>
    • <%= link_to("Listing", users_path) %>
    • - <% unless CurrentUser.nil? %> + <% unless CurrentUser.is_anonymous? %>
    • <%= link_to("Profile", user_path(CurrentUser.user)) %>
    • +
    • <%= link_to("Settings", edit_user_path(CurrentUser.user)) %>
    • <% end %>
    • <%= link_to("Feedback", user_feedbacks_path) %>
    • -
    • <%= link_to("Settings", edit_user_path(CurrentUser.user)) %>
    • <%= link_to("Signup", new_user_path) %>
    • <%= link_to("Terms of Service", terms_of_service_path) %>
    - <% if CurrentUser.is_admin? %> -
      -
    • Admin

    • -
    • <%= link_to("Janitor Trials", janitor_trials_path) %>
    • -
    • <%= link_to("IP Bans", ip_bans_path) %>
    • -
    • <%= link_to("News Updates", news_updates_path) %>
    • -
    • <%= link_to("Alias & Implication Import", new_admin_alias_and_implication_import_path) %>
    • +
        +
      • Admin

      • +
      • <%= link_to("Mod Actions", mod_actions_path) %>
      • + <% if CurrentUser.is_admin? %> +
      • <%= link_to("Janitor Trials", janitor_trials_path) %>
      • +
      • <%= link_to("IP Bans", ip_bans_path) %>
      • +
      • <%= link_to("News Updates", news_updates_path) %>
      • +
      • <%= link_to("Alias & Implication Import", new_admin_alias_and_implication_import_path) %>
      • + <% end %> + + <% if Danbooru.config.is_user_advertiser?(CurrentUser.user) %> +
      • <%= link_to("Advertisements", advertisements_path) %>
      • + <% end %>
      - <% end %>
    IP Address