diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-19 13:29:08 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-19 13:29:08 +0200 |
commit | 7fd19157644534d004a5ef4ca450fa7a3d3eb4b0 (patch) | |
tree | c9c0189d72380cdf942fb7e4a24dab43b943d8a5 /templates | |
parent | 1543cd3d0c0e6b54440c6a895f2f283dc3688913 (diff) | |
download | aCms-7fd19157644534d004a5ef4ca450fa7a3d3eb4b0.tar.gz aCms-7fd19157644534d004a5ef4ca450fa7a3d3eb4b0.tar.bz2 |
completed login/logout
Diffstat (limited to 'templates')
-rw-r--r-- | templates/intro.tmpl | 9 | ||||
-rw-r--r-- | templates/logout.tmpl | 24 | ||||
-rw-r--r-- | templates/master.tmpl (renamed from templates/main.tmpl) | 7 |
3 files changed, 37 insertions, 3 deletions
diff --git a/templates/intro.tmpl b/templates/intro.tmpl index 99f5e92..0fd4c35 100644 --- a/templates/intro.tmpl +++ b/templates/intro.tmpl @@ -11,8 +11,13 @@ Welcome to <b>StrusCms</b>. </div> <div> - If you want to edit pages, please log in - <a href="<%= login_link %>">here</a>. + <% if not empty username %> + After oyou finished editing pages, please log out + <a href="<%= logout_link %>">here</a>. + <% else %> + If you want to edit pages, please log in + <a href="<%= login_link %>">here</a>. + <% end %> </div> <% end template %> diff --git a/templates/logout.tmpl b/templates/logout.tmpl new file mode 100644 index 0000000..2ce7816 --- /dev/null +++ b/templates/logout.tmpl @@ -0,0 +1,24 @@ +<% c++ #include "user_content.hpp" %> +<% skin view %> +<% view logout uses content::user extends master %> + +<% template title() %> + <% include master::title() %> :: Logout +<% end %> + +<% template page_content() %> + <div> + You have been logged out of the system. Thanks for using strus CMS. + </div> + + <div> + If you found bugs, report them in Github. + </div> + + <div> + Otherwise contacting the developers is possible via email directly. + </div> +<% end template %> + +<% end view %> +<% end skin %> diff --git a/templates/main.tmpl b/templates/master.tmpl index 48b6984..7330ef1 100644 --- a/templates/main.tmpl +++ b/templates/master.tmpl @@ -26,7 +26,12 @@ </div> <div id="content"> - <h2><% include title( ) %></h2> + <h2><% include title( ) %></h2> + <% if not empty username %> + <p>Logged in as <%= username %><p> + <% else %> + <p>Currently not logged in</p> + <% end %> <% include page_content( ) %> <p class="credits">© 2015 Patrick Frey<br /> |