diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-14 19:53:21 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-14 19:53:21 +0100 |
commit | 9f39838e8ad5b6b1dda21013152055f8a008acc9 (patch) | |
tree | 7a30495cee48c7b103e7a8f5ba71f34bbbf65dc6 /web/views | |
parent | 4298e373d2c7ebbd8e2c82dda6cff54f6c3995b0 (diff) | |
download | taginfo-9f39838e8ad5b6b1dda21013152055f8a008acc9.tar taginfo-9f39838e8ad5b6b1dda21013152055f8a008acc9.tar.gz |
Add new relations section
There is a whole new relations section which gives information about different
relation types. There is a list of all relation types and there is a page for
each relation type which currently contains an empty overview tab and a roles
tab with a list of roles used with this relation type. There is currently no
link that leads to this section as it is not finished yet.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/relation.erb | 26 | ||||
-rw-r--r-- | web/views/relations.erb | 8 |
2 files changed, 34 insertions, 0 deletions
diff --git a/web/views/relation.erb b/web/views/relation.erb new file mode 100644 index 0000000..e2e60bc --- /dev/null +++ b/web/views/relation.erb @@ -0,0 +1,26 @@ +<div class="pre"> + <h1><%= t.pages.relation.name %> '<%= pp_rtype(@rtype) %>'</h1> + <p><%= @desc %></p> +</div> +<div id="tabs"> + <ul> + <li><a href="#overview"><%= t.pages.relation.overview.tab %></a></li> + <li><a href="#roles"><%= t.pages.relation.roles.tab %></a></li> + </ul> + <div id="overview"> + <h2><%= t.pages.relation.overview.title %></h2> + </div> + <div id="roles"> + <h2><%= t.pages.relation.roles.title %></h2> + <table id="grid-roles"> + </table> + </div> +</div> +<% javascript do + JS.raw(<<"JAVASCRIPT") +function page_init2() { + init_tabs([#{ @rtype.to_json }]); +} +JAVASCRIPT +end +%> diff --git a/web/views/relations.erb b/web/views/relations.erb new file mode 100644 index 0000000..663f24d --- /dev/null +++ b/web/views/relations.erb @@ -0,0 +1,8 @@ +<div class="pre"> + <h1 class="section"><%= t.pages.relations.name %></h1> + <p><%= t.pages.relations.intro %></p> +</div> +<div class="box resize"> + <table id="grid-relations"> + </table> +</div> |