fix validation errors
[phorkie.git] / data / templates / base.htm
index 8074938fa52d5552167b3a41b9bb3c5f54f14169..330cec6aa7a8dc3eea92ead2345b06dbc397e9f6 100644 (file)
@@ -1,15 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html>
-<html>
 <head>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
   <base href="{{baseurl}}" />
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <meta charset="utf-8" />
   <link rel="stylesheet" href="css/bootstrap.min.css"/>
   <link rel="stylesheet" href="css/font-awesome.css"/>
   <link rel="stylesheet" href="css/phorkie.css"/>
   {% if css %}
   <link rel="stylesheet" href="{{css}}"/>
   {% endif %}
+  {% if iconpng %}
+  <link rel="shortcut icon" href="{{iconpng}}" type="image/png"/>
+  {% endif %}
   <title>{% block title %}{% endblock %} - {{title}}</title>
   <script src="js/jquery.js"></script>
   <script src="js/bootstrap.min.js"></script>
@@ -42,7 +45,7 @@
      <ul class="nav pull-right">
       {% if identity %}
       <li>
-       <a href="user">{{name}}</a>
+       <a href="user"><img class="avatar-tiny" src="{{htmlhelper.getIconUrl(email, 20)}}" width="20" height="20" /> {{name}}</a>
       </li>
       {% endif %}
       {% if db.adapter %}
   <div class="container">
    <div class="row">
     <div class="span9">
+     {% if suggestSetupCheck %}
+     <div class="alert alert-warning">
+       No configuration file found.
+       Visit the <a href="setup">setup check page</a> for more information.
+     </div>
+     {% endif %}
      {% block content %}{% endblock %}
     </div>
     <div class="span3">
   <div class="container footer">
    <a href="//sf.net/p/phorkie/">phorkie</a>,
    the self-hosted, git-based pastebin software is available under the
-   <a href="https://sf.net/p/phorkie/">
+   <a href="http://www.gnu.org/licenses/agpl-3.0.html">
     <abbr title="GNU Affero General Public License">AGPL</abbr></a>.
   </div>
+  {% if autologin %}
+  <script src="js/autologin.js"></script>
+  {% endif %}
  </body>
 </html>