<div id="c-static">
  <div id="a-site-map">
    <h1><%= Danbooru.config.app_name %></h1>
    <section>
      <ul>
        <li><h1>Posts</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:posts")) %></li>
        <li><%= link_to("Listing", posts_path) %></li>
        <li><%= link_to("Changes", post_versions_path) %></li>
        <li><%= link_to("Upload", new_upload_path) %></li>
        <li><%= link_to("Upload Listing", uploads_path) %></li>
        <li><%= link_to("Appeals", post_appeals_path) %></li>
        <li><%= link_to("Flags", post_flags_path) %></li>
        <% if CurrentUser.is_janitor? %>
          <li><%= link_to("Moderate", moderator_post_queue_path) %></li>
        <% end %>
        <% if CurrentUser.is_admin? %>
          <li><%= link_to("Mass Edit", edit_moderator_tag_path) %></li>
        <% end %>
      </ul>
      <ul>
        <li><h1>Tools</h1></li>
        <li><%= link_to("Source Code", "https://github.com/r888888888/danbooru") %></li>
        <li><%= link_to("Bug Reports", "https://github.com/r888888888/danbooru/issues") %></li>
        <li><%= link_to("Keyboard Shortcuts", keyboard_shortcuts_path) %></li>
        <li><%= link_to("Bookmarklet", bookmarklet_path) %></li>
        <li><%= link_to("API Documentation", wiki_pages_path(:title => "help:api")) %></li>
      </ul>
      <ul>
        <li><h1>Artists</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:artists")) %></li>
        <li><%= link_to("Listing", artists_path) %></li>
        <li><%= link_to("Changes", artist_versions_path) %></li>
      </ul>
    </section>
    <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("Aliases", tag_aliases_path) %></li>
        <li><%= link_to("Implications", tag_implications_path) %></li>
        <li><%= link_to("Subscriptions",tag_subscriptions_path) %></li>
        <li><%= link_to("Listing", tags_path) %></li>
      </ul>
      <ul>
        <li><h1>Notes</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:notes")) %></li>
        <li><%= link_to("Changes", note_versions_path) %></li>
        <li><%= link_to("Listing", notes_path) %></li>
      </ul>
      <ul>
        <li><h1>Pools</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:pools")) %></li>
        <li><%= link_to("Listing", pools_path) %></li>
        <li><%= link_to("Changes", pool_versions_path) %></li>
      </ul>
      <ul>
        <li><h1>Reports</h1></li>
        <li><%= link_to("User Promotions", reports_user_promotions_path) %></li>
      </ul>
    </section>
    <section>
      <ul>
        <li><h1>Comments</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:comments")) %></li>
        <li><%= link_to("Listing", comments_path) %></li>
      </ul>
      <ul>
        <li><h1>Forum</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:forum")) %></li>
        <li><%= link_to("Listing", forum_topics_path) %></li>
      </ul>
      <ul>
        <li><h1>Wiki</h1></li>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:wiki")) %></li>
        <li><%= link_to("Listing", wiki_pages_path) %></li>
        <li><%= link_to("Changes", wiki_page_versions_path) %></li>
      </ul>
    </section>
    <section>
      <ul>
        <li><h1>Users</h1></li>
        <% if CurrentUser.is_janitor? %>
          <li><%= link_to("Dashboard", moderator_dashboard_path) %></li>
        <% end %>
        <li><%= link_to("Help", wiki_pages_path(:title => "help:users")) %></li>
        <li><%= link_to("Bans", bans_path) %></li>
        <li><%= link_to("Listing", users_path) %></li>
        <% unless CurrentUser.is_anonymous? %>
          <li><%= link_to("Profile", user_path(CurrentUser.user)) %></li>
          <li><%= link_to("Settings", edit_user_path(CurrentUser.user)) %></li>
        <% end %>
        <li><%= link_to("Feedback", user_feedbacks_path) %></li>
        <li><%= link_to("Signup", new_user_path) %></li>
        <li><%= link_to("Terms of Service", terms_of_service_path) %></li>
        <li><%= link_to("Upgrade Information", upgrade_information_users_path) %></li>
      </ul>
      <ul>
        <li><h1>Admin</h1></li>
        <li><%= link_to("Mod Actions", mod_actions_path) %></li>
        <li><%= link_to("Jobs", delayed_jobs_path) %></li>

          <% if CurrentUser.is_admin? %>
            <li><%= link_to("Janitor Trials", janitor_trials_path) %></li>
            <li><%= link_to("IP Bans", ip_bans_path) %></li>
            <li><%= link_to("News Updates", news_updates_path) %></li>
            <li><%= link_to("Alias & Implication Import", new_admin_alias_and_implication_import_path) %></li>
          <% end %>

          <% if Danbooru.config.is_user_advertiser?(CurrentUser.user) %>
            <li><%= link_to("Advertisements", advertisements_path) %></li>
          <% end %>
        </ul>
    </section>
  </div>
</div>

<% content_for(:page_title) do %>
  Site Map - <%= Danbooru.config.app_name %>
<% end %>
