summaryrefslogtreecommitdiff
path: root/templates/index.html.erb
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2012-10-23 15:08:45 +0200
committerintrigeri <intrigeri@boum.org>2012-10-23 21:51:04 +0200
commit8bb6499572fd1c1a05c033f85bc36b556d9ba629 (patch)
treea8713f0b9aa56883f8645db222394aa549175954 /templates/index.html.erb
parent236ae8bf9adfc3ad34650d20a82f9720a7002b1b (diff)
Refer to variables using Ruby instance variables in templates
This is the recommended way, as it prevents clashes with Ruby function names.
Diffstat (limited to 'templates/index.html.erb')
-rw-r--r--templates/index.html.erb10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/index.html.erb b/templates/index.html.erb
index 65ac222..1173021 100644
--- a/templates/index.html.erb
+++ b/templates/index.html.erb
@@ -1,11 +1,11 @@
<html>
<head>
-<title><%= domain %> Debian package repository</title>
+<title><%= @domain %> Debian package repository</title>
</head>
<body>
<h1>Introduction</h1>
-<p>This is the Debian package repository of <%= reprepro_origin %>. It is used for internal
+<p>This is the Debian package repository of <%= @reprepro_origin %>. It is used for internal
distribution of locally built packages not yet part of Debian. Feel free to use
it for yourself, but it comes at no warranty.
@@ -14,8 +14,8 @@ it for yourself, but it comes at no warranty.
<p>In your /etc/apt/source.list:
<pre>
-deb http://debian.<%= domain %>/debian lenny main
-deb-src http://debian.<%= domain %>/debian lenny main
+deb http://debian.<%= @domain %>/debian lenny main
+deb-src http://debian.<%= @domain %>/debian lenny main
</pre>
"lenny", of course, can be replaced by your distribution. Know that we usually
@@ -31,7 +31,7 @@ more precise).</p>
<p>The key of the archive is in the <a href="/key.asc">key.asc file</a>. You should add the key using something like this:</p>
<pre>
-wget http://debian.<%= domain %>/debian/key.asc
+wget http://debian.<%= @domain %>/debian/key.asc
apt-key add key.asc
apt-get update
</pre>