1. Benoit Chesneau
  2. couchit

Commits

Benoit Chesneau  committed 7968564

fix html5 validation.
fix footer pb

  • Participants
  • Parent commits 068b760
  • Branches default

Comments (0)

Files changed (6)

File static/css/layout.css

View file
  • Ignore whitespace
     height: 100%;
 }
 
-footer#bottom {
+.footer_wrapper {
     display: block;
     position: relative;
     clear: both;
 
 #fclaim td.first-row { padding-top: 0;}
 
+
+.claim { 
+    float: right; 
+    display: block;
+    margin-right: 2.5em;
+    margin-bottom: 15px;
+    font-weight: bold;
+    
+    background: #000 url("../img/roundedcorners.svg");; 
+   	-moz-border-radius-bottomleft: 5px;
+    -moz-border-radius-bottomright: 5px;
+    -khtml-border-bottom-left-radius: 5px;
+    -webkit-border-bottom-left-radius: 5px;
+    -khtml-border-bottom-right-radius: 5px;
+    -webkit-border-bottom-right-radius: 5px;
+    border-bottom-left-radius: 5px;
+    border-bottom-right-radius: 5px;
+    padding: 5px;
+    color: #fff;
+    text-decoration: none;
+}
+
 td.wrap {
     white-space: pre-wrap; /* css-3 */
     white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */

File static/js/page.js

View file
  • Ignore whitespace
             var obj = this;
             var insert_snippet = function(e) {
                 Event.stop(e);
-                
-                if ($('snippet_from').getValue() == "0") {
+                var snippet_from = $('fsnippet').getInputs('radio', 'snippet_from')
+                if (snippet_from[0].checked) {
                     var code = $('snippet_content').getValue();
                     code = $A(code.split("\n")).collect(function(line) {
                         line = '    ' + line;

File templates/base.html

View file
  • Ignore whitespace
 <!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<html lang="en">
 
 <head>
+    <meta charset="utf-8" />
     <title>couchit - {% block title %}{% endblock %}</title>
-    <meta charset="utf-8"/>
+    
     <link rel="stylesheet" href="/static/css/base.css" type="text/css" />
     <link rel="stylesheet" href="/static/css/default.css" type="text/css" />
 
 </head>
 <body>
     {% if site and not site.claimed %}
-       
-      
-            <a href="{{ url_for('site_claim', cname=site.cname) }}" class="claim">Claim this site</a>
-
-
+     <a href="{{ url_for('site_claim', cname=site.cname) }}" class="claim">Claim this site</a>
     {% endif %}
     <div id="container">
         
             {% endblock %}          
         </div>
         
-        <footer id="bottom">
+        <footer class="footer_wrapper">
             {% block footer %}{% endblock %}
             <p>Powered by <a href="http://couchit.net">CouchIt</a></p>
         </footer>

File templates/header.html

View file
  • Ignore whitespace
-
-
-<header id="topheader">
-   
-    
-
-</header>

File templates/page/show.html

View file
  • Ignore whitespace
 {% block title %}{{ page.title }} (revision {{ page.nb_revision }}){% endblock %}
 
 {% block head %}
-<link rel="stylesheet" type="text/css" href="/static/css/textarea.css">
+<link rel="stylesheet" type="text/css" href="/static/css/textarea.css" />
 <script src="/static/js/dragdrop.js" type="text/javascript"></script>
 <script src="/static/js/tabs.js" type="text/javascript"></script>
 <script src="/static/js/resizable.js" type="text/javascript"></script>
      <div id="snippet_window_close"></div>
      <div id="snippet_window_title">Insert a snippet</div>
      <form name="fsnippet" id="fsnippet">
-         <p class="choice"><input type="radio" name="snippet_from" id="snippet_from" value="0" class="tsnippet" checked="checked" />Paste it here :</p>           
+         <p class="choice"><input type="radio" name="snippet_from" value="0" class="tsnippet" checked="checked" />Paste it here :</p>           
          <table>
              <tr>
                  <th><label for="snippet_language">Programming language</label></th>
                 </td>
             </tr>
         </table>
-        <p class="choice"><input type="radio" name="snippet_from" id="snippet_from" value="1" class="tsnippet" />Or insert a snippet from <a href="http://www.friendpaste.com">Friendpaste</a></p>
+        <p class="choice"><input type="radio" name="snippet_from"  value="1" class="tsnippet" />Or insert a snippet from <a href="http://www.friendpaste.com">Friendpaste</a></p>
          <table>
              <tr>
                  <th>URL:</th>
 
 
 {% block footer %}
-    <script type="text/javascript" charset="utf-8">
+    <script type="text/javascript">
         Site.name = "{{ site.cname }}";
         Site.url = "/" + "{{ site.cname }}"
         {% if not page.id %}

File templates/sidebar.html

View file
  • Ignore whitespace
 <div id="createPage">
     <a href="#" id="doCreate">Create new page</a>
-    <form id="fnewpage" id="fnewpage" method="get">
+    <form id="fnewpage" name="fnewpage" method="get">
         <p><input type="text" name="title" id="title" value="" /></p>
         <p><input type="submit" name="screate" id="screate" value="Create" /> or <a href="#" class="cancelCreate">Cancel</a></p>
     </form>
 </div>
 
 <nav>
-<ul>
-    <li><a href="">recent changes</a></li>
-    <li><a href="{{ url_for('site_settings', cname=site.cname) }}">settings</a></li>
-    <li><a href="{{ url_for('site_design', cname=site.cname) }}">design</a></li>
-</ul>
+    <ul>
+        <li><a href="">recent changes</a></li>
+        <li><a href="{{ url_for('site_settings', cname=site.cname) }}">settings</a></li>
+        <li><a href="{{ url_for('site_design', cname=site.cname) }}">design</a></li>
+    </ul>
 </nav>
 
 <div id="pagesBox" class="box">
     <ul class="pagelist">
         {% for p in pages %}
         <li><a href="{{ url_for('show_page', cname=site.cname, pagename=p.title|replace(" ", "_"))  }}">{{ p.title }}</a></li>
-{% endfor %}
+        {% endfor %}
     </ul>
-<div>
+</div>