diff options
author | Jochen Topf <jochen@topf.org> | 2014-09-05 15:33:19 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-09-05 15:33:19 +0200 |
commit | e46fc9a82191c9f338a6bae5b57f10ce732c7433 (patch) | |
tree | f8d5b7d5254e37b595e759134751c359654c2dfc /web/views | |
parent | f54dd3983a264a32920413a709daa37427417e01 (diff) | |
download | taginfo-e46fc9a82191c9f338a6bae5b57f10ce732c7433.tar taginfo-e46fc9a82191c9f338a6bae5b57f10ce732c7433.tar.gz |
Add/update texts about projects.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/project.erb | 8 | ||||
-rw-r--r-- | web/views/projects.erb | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/web/views/project.erb b/web/views/project.erb index 0b7dea4..16637c1 100644 --- a/web/views/project.erb +++ b/web/views/project.erb @@ -16,11 +16,13 @@ <tr><th><%= h(t.pages.project.overview.documentation_url) %>:</th><td id="doc_url"></td></tr> <% end %> <tr><th><%= h(t.pages.project.overview.last_update) %>:</th><td><%= h(@project.data_updated) %></td></tr> + <tr><th><%= h(t.pages.project.overview.json_url) %>:</th><td id="json_url"></td></tr> </table> + <p><i><%= t.pages.project.overview.info %></i></p> </div> <div id="tags"> <h2><%= h(t.pages.project.tags.title) %></h2> - <p><%= h(t.pages.project.tags.intro) %></p> + <p><i><%= h(t.pages.project.tags.intro) %></i></p> <table id="grid-tags"> </table> </div> @@ -30,11 +32,15 @@ function page_init2() { var project = #{ @project_id.to_json }, project_url = #{ @project.project_url.to_json }, + json_url = #{ @project.json_url.to_json }, doc_url = #{ @project.doc_url.to_json }; if (project_url) { jQuery('#project_url').html(link_to_url(project_url)); } + if (json_url) { + jQuery('#json_url').html(link_to_url(json_url)); + } if (doc_url) { jQuery('#doc_url').html(link_to_url(doc_url)); } diff --git a/web/views/projects.erb b/web/views/projects.erb index ec95947..ce04fa2 100644 --- a/web/views/projects.erb +++ b/web/views/projects.erb @@ -1,6 +1,6 @@ <div class="pre"> <h1 class="section"><%= h(t.taginfo.projects) %></h1> - <p><%= h(t.pages.projects.intro) %></p> + <p><%= t.pages.projects.intro %></p> </div> <div class="box resize"> <table id="grid-projects"> |