summaryrefslogtreecommitdiff
path: root/templates/master.tmpl
blob: 118e1147f8521bb35344d8724e1d2deaf4a14e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<% c++ #include "content.hpp" %>
<% skin view %>
<% view master uses content::master %>

<% template title( ) %><%= title %><% end %>  
<% template page_content( ) %>Override  Me<% end %>  
    
<% template render( ) %>
<html>
  <head>
    <title><% include title( ) %></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="/media/basic-profile.css" title="Basic Profile" media="all" />
  </head>
  <body>
    <div id="wrap">

      <div id="sidebar">
        <img src="/media/images/strus_big.jpg" width="280" height="280" alt="Strus logo" /></a>
        <h1><a href="<%= root() %>">Strus CMS</a></h1>
        <p class="slogan">A simple demo CMS showing the power of the following software:</p>
        <ul>
          <li><a href="http://project-strus.net">Strus</a><br/>a collection of C++ libraries for building a full-text search engine</li>
          <li><a href="http://cppcms.com/wikipp/en/page/main">CppCMS</a><br/>a C++ web programming framework</li>
          <li><a href="http://brokestream.com/captcha.html"</li>libcaptcha</a><br/>a C standalone Captcha generator</li>
          <li><a href="http://libb64.sourceforge.net/"</li>libb64</a><br/>a C++ BASE64 encoder/decoder library</li>
          <li><a href="http://sourceforge.net/projects/libquickmail/">libquickmail</a><br/>a C++ library to send emails</li>
          <li><a href="http://www.cryptopp.com/">Crypto++</a><br/>a C++ crypto library</li>
          <li><a href="http://bitwiseshiftleft.github.io/sjcl/">SJCL</a><br/>the Stanford Javascript Crypto Library</li>
        </ul>
      </div>
      
      <div id="content">
		<h2><% include title( ) %></h2>
		<% if not empty username %>
			<p>Logged in as <%= username %>
			<a href="<%= logout_link %>">Logout</a></p>
		<% else %>
			<p>Currently not logged in</p>
		<% end %>
        <% include page_content( ) %>

		<p class="credits">&copy; 2015 Patrick Frey<br />
		Template design by <a href="http://andreasviklund.com/">Andreas Viklund</a> / Best hosted at <a href="https://www.svenskadomaner.se/?ref=mall&amp;ling=en" title="Svenska Domner AB">www.svenskadomaner.se</a></p>
      </div>
    
  </body>
</html>
<% end template %>
<% end view %>
<% end skin %>