diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-20 18:11:09 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-20 18:11:09 +0100 |
commit | efd17ad0d6200faa8586077d622359fb64c2ad22 (patch) | |
tree | f2558d221ace5a1af4d728e3f3117c3144664bca /web/lib | |
parent | fe22edeccef4ba8b4b0c78448bbfc292a947a35e (diff) | |
download | taginfo-efd17ad0d6200faa8586077d622359fb64c2ad22.tar taginfo-efd17ad0d6200faa8586077d622359fb64c2ad22.tar.gz |
Add link to relation type page from tag page
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/ui/tags.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/ui/tags.rb b/web/lib/ui/tags.rb index 525e157..8c4db79 100644 --- a/web/lib/ui/tags.rb +++ b/web/lib/ui/tags.rb @@ -49,6 +49,11 @@ class Taginfo < Sinatra::Base @image_url = build_image_url(row) end + @has_rtype_link = false + if @key == 'type' && @db.count('relation_types').condition('rtype = ?', @value).get_first_value().to_i > 0 + @has_rtype_link = true + end + javascript_for(:flexigrid) javascript "#{ r18n.locale.code }/tag" erb :tag |