diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-29 21:54:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-29 21:54:23 -0400 |
commit | 326617ad2f6c1708bc2826ba75cb8f9c3064d6dc (patch) | |
tree | 7a0ceaab772362aecda942003c1696ca7647cba9 /templates | |
parent | 0186f06744e6c379d41c482f42374853bd3c5539 (diff) |
add intro
Diffstat (limited to 'templates')
-rw-r--r-- | templates/bootstrap.hamlet | 2 | ||||
-rw-r--r-- | templates/intro.hamlet | 23 | ||||
-rw-r--r-- | templates/page.hamlet | 6 |
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> |