summaryrefslogtreecommitdiff
path: root/web/views/layout.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2011-10-10 17:37:30 +0200
committerJochen Topf <jochen@topf.org>2011-10-10 17:38:49 +0200
commitdf280436636e745ce26d6b04a3a54aa45c589a91 (patch)
treeff1d6f0aaa370be2b3c818d9d170add96e47e81d /web/views/layout.erb
parent3ee5a07b907df9568a5b26093dbe7392886eb508 (diff)
downloadtaginfo-df280436636e745ce26d6b04a3a54aa45c589a91.tar
taginfo-df280436636e745ce26d6b04a3a54aa45c589a91.tar.gz
New config file
There is a new config file 'taginfo-config.json'. Copy it one directory level above where it is in the distribution and change it to your needs. There are multiple changes in the code to get settings from the config file. This should make running your own instance a lot easier.
Diffstat (limited to 'web/views/layout.erb')
-rw-r--r--web/views/layout.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb
index b996908..c91f8ac 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" href="/css/taginfo.css" />
<link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.8.10.custom.css" />
<link rel="stylesheet" type="text/css" href="/css/flexigrid/flexigrid.css" />
- <link rel="search" type="application/opensearchdescription+xml" href="/search/opensearch.xml" title="Taginfo" />
+ <link rel="search" type="application/opensearchdescription+xml" href="/search/opensearch.xml" title="<%= TaginfoConfig.get('opensearch.shortname') %>" />
<%= javascript_tags %>
</head>
<body>
@@ -28,9 +28,9 @@
</form>
</div>
<div id="left">
- <a id="instance" href="#"><img src="/img/instance.png" alt="" height="24" style="padding: 2px 6px 0 0;"/></a>
+ <a id="instance" href="#"><img src="<%= TaginfoConfig.get('instance.icon', '/img/instance.png') %>" alt="" height="24" style="padding: 2px 6px 0 0;"/></a>
<div id="instance_description" style="display: none;" class="ui-widget-content ui-corner-all">
- <p><%= taginfo_instance_description %></p>
+ <p><%= TaginfoConfig.get('instance.description') %></p>
<p><%= t.taginfo.instance.other %></p>
</div>
<a href="/"><img src="/img/taginfo.48.png" alt="Taginfo" width="48" height="24" style="padding-top: 2px;"/></a>