Skip to content

Commit

Permalink
Add config settings to meta page
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jan 25, 2012
1 parent b1347bc commit 2409876
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/views/taginfo/index.erb
Expand Up @@ -3,8 +3,17 @@
<p>This section is for developers only.</p>
</div>
<div class="box resize">
<h2>Menu</h2>
<ul>
<li><a href="/taginfo/apidoc"><%= t.taginfo.apidoc %></a></li>
<li><a href="/taginfo/i18n">taginfo text translations</a></li>
</ul>
<h2>Config Settings</h2>
<table class="list">
<tr><th class="tl">Variable</th><th class="tl">Setting</th></tr>
<% [:url, :name, :description, :icon, :contact, :area].each do |k| %>
<tr><td><%= k %></td><td><%= TaginfoConfig.get("instance.#{k}") %></td></tr>
<% end %>
</table>
<p>These config settings are also available from the <tt>/api/2/site</tt> <a href="/taginfo/apidoc#api_2_site">API call</a>.</p>
</div>

0 comments on commit 2409876

Please sign in to comment.