aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-05 16:55:21 +0200
committerJochen Topf <jochen@topf.org>2014-09-05 16:55:21 +0200
commitbf5f9f7ea67dcb49b9791825408b68d438785b4b (patch)
treec44ea1696e8c4302e56c9638639d3c32030df6e8 /web/views
parent074e4eb4a002678e739652c1c4ff8905b00af17a (diff)
downloadtaginfo-bf5f9f7ea67dcb49b9791825408b68d438785b4b.tar
taginfo-bf5f9f7ea67dcb49b9791825408b68d438785b4b.tar.gz
Add project icons.
Diffstat (limited to 'web/views')
-rw-r--r--web/views/project.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/views/project.erb b/web/views/project.erb
index 16637c1..faab181 100644
--- a/web/views/project.erb
+++ b/web/views/project.erb
@@ -9,7 +9,7 @@
</ul>
<div id="overview">
<table class="desc">
- <tr><th><%= h(t.pages.project.overview.project_name) %>:</th><td><%= h(@project.name) %></td></tr>
+ <tr><th><%= h(t.pages.project.overview.project_name) %>:</th><td><span id="icon_url"></span> <%= h(@project.name) %></td></tr>
<tr><th><%= h(t.pages.project.overview.project_url) %>:</th><td id="project_url"></td></tr>
<tr><th><%= h(t.pages.project.overview.description) %>:</th><td><%= h(@project.description) %></td></tr>
<% if @project.doc_url %>
@@ -33,11 +33,15 @@ function page_init2() {
var project = #{ @project_id.to_json },
project_url = #{ @project.project_url.to_json },
json_url = #{ @project.json_url.to_json },
+ icon_url = #{ @project.icon_url.to_json },
doc_url = #{ @project.doc_url.to_json };
if (project_url) {
jQuery('#project_url').html(link_to_url(project_url));
}
+ if (icon_url) {
+ jQuery('#icon_url').html(img({ src: icon_url, width: 16, height: 16, alt: ''}));
+ }
if (json_url) {
jQuery('#json_url').html(link_to_url(json_url));
}