summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-29 21:54:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-29 21:54:23 -0400
commit326617ad2f6c1708bc2826ba75cb8f9c3064d6dc (patch)
tree7a0ceaab772362aecda942003c1696ca7647cba9 /templates
parent0186f06744e6c379d41c482f42374853bd3c5539 (diff)
add intro
Diffstat (limited to 'templates')
-rw-r--r--templates/bootstrap.hamlet2
-rw-r--r--templates/intro.hamlet23
-rw-r--r--templates/page.hamlet6
3 files changed, 27 insertions, 4 deletions
diff --git a/templates/bootstrap.hamlet b/templates/bootstrap.hamlet
index 389895df7..13aefd486 100644
--- a/templates/bootstrap.hamlet
+++ b/templates/bootstrap.hamlet
@@ -1,7 +1,7 @@
$doctype 5
<html>
<head>
- <title>#{baseTitle webapp} #{pageTitle page}
+ <title>#{relDir webapp} #{pageTitle page}
<link rel="icon" href=@{StaticR favicon_ico} type="image/x-icon">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
^{pageHead page}
diff --git a/templates/intro.hamlet b/templates/intro.hamlet
new file mode 100644
index 000000000..ef82df79b
--- /dev/null
+++ b/templates/intro.hamlet
@@ -0,0 +1,23 @@
+<div .span9 ##{ident} .hero-unit>
+ <h2>
+ git-annex is watching over your files in <small><tt>#{reldir}</tt></small>
+ <p>
+ It will automatically notice changes, and keep files in sync between #
+ $if notenough
+ repositories on your devices ...
+ <h2>
+ But no other repositories are set up yet.
+ <a .btn .btn-primary .btn-large href="@{AddRepositoryR}">Add another repository</a>
+ $else
+ these #
+ $if barelyenough
+ <span .badge .badge-warning>#{numrepos}</span>
+ $else
+ <span .badge .badge-success>#{numrepos}</span>
+ \ repositories and devices:
+ <ul>
+ $forall name <- remotelist
+ <li>#{name}
+ <a .btn .btn-primary .btn-large href="@{AddRepositoryR}">Add another repository</a>
+ <div>
+ Or just sit back, watch the magic, and get on with using your files.
diff --git a/templates/page.hamlet b/templates/page.hamlet
index c397d248c..500424125 100644
--- a/templates/page.hamlet
+++ b/templates/page.hamlet
@@ -11,12 +11,12 @@
<ul .nav .pull-right>
<li .dropdown #menu1>
<a .dropdown-toggle data-toggle="dropdown" href="#menu1">
- Current Repository: #{baseTitle webapp}
+ Current Repository: #{relDir webapp}
<b .caret></b>
<ul .dropdown-menu>
- <li><a href="#">#{baseTitle webapp}</a></li>
+ <li><a href="#">#{relDir webapp}</a></li>
<li .divider></li>
- <li><a href="#">Add new repository</a></li>
+ <li><a href="@{AddRepositoryR}">Add new repository</a></li>
<div .container-fluid>
<div .row-fluid>