Commits

mitsuhiko  committed 3bdf6f1

Switched to HTML5 and fixed a few template annoyances.

  • Participants
  • Parent commits 01b77c9

Comments (0)

Files changed (9)

File zine/plugins/miniblog_theme/templates/layout.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
+<!doctype html>
 <html lang="{{ cfg.language|e }}">
 <head>
   <title>{% block title %}{% endblock %} &mdash; {{ cfg.blog_title|e }}</title>

File zine/plugins/myrtle_theme/templates/layout.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
+<!doctype html>
 <html lang="{{ cfg.language|e }}">
 <head>
   <title>{% block title %}{% endblock %} &mdash; {{ cfg.blog_title|e }}</title>

File zine/plugins/vessel_theme/templates/layout.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
+<!doctype html>
 <html lang="{{ cfg.language|e }}">
 <head>
   <title>{% block title %}{% endblock %} &mdash; {{ cfg.blog_title|e }}</title>

File zine/shared/admin/style.css

     background-color: #316081;
 }
 
+body:after { /* fix for chrome bug */
+    content: "";
+    display: block;
+    position: absolute;
+    height: 100%;
+    width: 1px;
+    top: 0;
+    left: 0;
+}
+
 ::-moz-selection {
     background-color: #D0DFF0;
     color: #456981;
     text-shadow: 0 1px 3px #D3E3F3;
 }
 
+div.contents h1 a {
+    font-family: 'Trebuchet MS', sans-serif;
+    font-size: 15px;
+    margin: 5px 10px 0 0;
+    float: right;
+}
+
 div.contents h2 {
     color: #222e4b;
     margin: 0.8em 0 0.3em 0;

File zine/templates/admin/edit_entry.html

 {% block title %}{% if form.post.title %}{{ form.post.title|e }} — {%
   endif %}&#8203;{{ title_suffix }}{% endblock %}
 {% block contents %}
-  <h1>{{ self.title() }}</h1>
+  <h1>{{ self.title() }}{% if not form.new %} <a href="{{ url_for(form.post)
+    }}" class="preview">{{ _("View Entry") }}</a>{% endif %}</h1>
   {% if form.preview %}
     <div class="preview" id="preview">
       <h2 class="title">{{ _('Preview') }} (<a href="#post_form">{{ _('skip') }}</a>)</h2>

File zine/templates/admin/edit_page.html

       </div>
     </div>
   {% endif %}
-  <h1>{{ self.title() }}</h1>
+  <h1>{{ self.title() }}{% if not form.new %} <a href="{{ url_for(form.post)
+    }}" class="preview">{{ _("View Page") }}</a>{% endif %}</h1>
   <a name="form_start" /></a>
   {% call form(id="post_form") %}
     {%- if form.parser_missing %}

File zine/templates/admin/layout.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
+<!doctype html>
 <html>
 <head>
   {%- block html_head %}

File zine/templates/maintenance.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
+<!doctype html>
 <html>
 <head>
   <title>Zine Maintenance Mode</title>

File zine/websetup/templates/layout.html

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-  "http://www.w3.org/TR/html4/strict.dtd">
+<!doctype html>
 <html>
 <head>
   <title>{{ _('Zine Setup') }}</title>