minor fixes
authorJan Szejko <janek37@gmail.com>
Fri, 9 Dec 2016 15:06:15 +0000 (16:06 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 9 Dec 2016 15:06:15 +0000 (16:06 +0100)
apps/catalogue/models/document.py
apps/wiki/static--wiki--editor--node_modules--grunt-contrib-less--node_modules--less--test/css/css.css
apps/wiki/static--wiki--editor--node_modules--grunt-contrib-less--node_modules--less--test/less/css.less

index 5fa6242..70f50f2 100755 (executable)
@@ -38,8 +38,7 @@ class Document(Ref):
 
     def meta(self):
         from lxml import etree
-        # Wrong! should be metadata
-        d = {}
+        metadata = {}
 
         data = self.materialize()
         data = data.replace(u'\ufeff', '')
@@ -53,7 +52,7 @@ class Document(Ref):
         header = t.find('.//header')
         if header is None:
             header = etree.fromstring(data).find('.//{http://nowoczesnapolska.org.pl/sst#}header')
-        d['title'] = getattr(header, 'text', ' ') or ' '
+        metadata['title'] = getattr(header, 'text', ' ') or ' '
         #print 'meta', d['title']
 
         m = t.find('metadata')
@@ -62,12 +61,12 @@ class Document(Ref):
         if m is not None:
             c = m.find('{http://purl.org/dc/elements/1.1/}relation.coverimage.url')
             if c is not None:
-                d['cover_url'] = c.text
+                metadata['cover_url'] = c.text
             c = m.find('{http://purl.org/dc/elements/1.1/}audience')
             if c is not None:
-                d['audience'] = c.text
+                metadata['audience'] = c.text
 
-        return d
+        return metadata
 
     def can_edit(self, user):
         if self.owner_user:
index b011a7e..ee1d48e 100644 (file)
@@ -11,7 +11,7 @@ div {
 h1,
 h2 > a > p,
 h3 {
-  color: none;
+  color: unset;
 }
 div.class {
   color: blue;
@@ -72,7 +72,6 @@ p + h1 {
   width: .1em;
   background-color: #009998;
   background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), to(#0000ff));
-  margin: ;
   filter: alpha(opacity=100);
   width: auto\9;
 }
index 766bdd4..90b354c 100644 (file)
@@ -7,7 +7,7 @@ div { width: 99%; }
 }
 
 h1, h2 > a > p, h3 {
-  color: none;
+  color: unset;
 }
 
 div.class {
@@ -67,7 +67,7 @@ p + h1 {
 }
 
 #more-shorthands {
-  margin: 0;
+  margin: 0.1%;
   padding: 1px 0 2px 0;
   font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
   font: 0/0 a;
@@ -80,7 +80,6 @@ p + h1 {
   width: .1em;
   background-color: #009998;
   background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
-  margin: ;
   .nested-multiple {
        multiple-semi-colons: yes;;;;;;
   };