# HG changeset patch # User durandn # Date 1428501597 -7200 # Node ID 524e01a8127a410fe094bcc1bdbd0731dbcaa624 # Parent f435bf7316f73a2fd9b410d6f4be1307ca59daf6 Fix to navbar select css + cleaning up leftover unused imports diff -r f435bf7316f7 -r 524e01a8127a src/catedit/config.py.tmpl --- a/src/catedit/config.py.tmpl Wed Apr 08 14:55:44 2015 +0200 +++ b/src/catedit/config.py.tmpl Wed Apr 08 15:59:57 2015 +0200 @@ -3,7 +3,7 @@ Contains all settings that can change depending on the deployment environment """ -from rdflib import URIRef, RDF, RDFS, Literal +from rdflib import RDF, RDFS, Literal from rdflib.namespace import SKOS class AppConfig(object): @@ -74,32 +74,25 @@ } PROPERTY_LIST = { - RDFS.subClassOf.toPython(): { - "descriptive_label_fr": "Sous-classe de", - "descriptive_label_en": "Subclass of", - "object_type": "uriref-category", - "usable_in_editor": True, - "rdflib_class": RDFS.subClassOf, - }, - RDFS.comment.toPython(): { - "descriptive_label_fr": "Commentaire", - "descriptive_label_en": "Comment", - "object_type": "literal", - "usable_in_editor": True, - "rdflib_class": RDFS.comment, - }, - RDFS.Resource.toPython(): { - "descriptive_label_fr": "Ressource", - "descriptive_label_en": "Resource", - "object_type": "uriref-link", - "usable_in_editor": True, - "rdflib_class": RDFS.Resource, - }, - SKOS.related.toPython(): { - "descriptive_label_fr": "En relation avec", - "descriptive_label_en": "Related to", - "object_type": "uriref-category", - "usable_in_editor": True, - "rdflib_class": SKOS.related, - } + "http://www.w3.org/2000/01/rdf-schema#comment": { + "descriptive_label_fr": "Commentaire", + "descriptive_label_en": "Comment", + "object_type": "literal", + "usable_in_editor": false, + "rdflib_class": "http://www.w3.org/2000/01/rdf-schema#comment" + }, + "http://www.w3.org/2000/01/rdf-schema#Resource": { + "descriptive_label_fr": "Ressource", + "descriptive_label_en": "Resource", + "object_type": "uriref-link", + "usable_in_editor": false, + "rdflib_class": "http://www.w3.org/2000/01/rdf-schema#Resource" + }, + "http://www.w3.org/2004/02/skos/core#related": { + "descriptive_label_fr": "En relation avec", + "descriptive_label_en": "Related to", + "object_type": "uriref-category", + "usable_in_editor": false, + "rdflib_class": "http://www.w3.org/2004/02/skos/core#related" + } } diff -r f435bf7316f7 -r 524e01a8127a src/catedit/models.py --- a/src/catedit/models.py Wed Apr 08 14:55:44 2015 +0200 +++ b/src/catedit/models.py Wed Apr 08 15:59:57 2015 +0200 @@ -10,7 +10,7 @@ import logging from uuid import uuid4 -from rdflib import Graph, RDF, RDFS, Literal, URIRef +from rdflib import Graph, RDF, RDFS, Literal from rdflib.compare import to_isomorphic, graph_diff from slugify import slugify diff -r f435bf7316f7 -r 524e01a8127a src/catedit/static/css/style.css --- a/src/catedit/static/css/style.css Wed Apr 08 14:55:44 2015 +0200 +++ b/src/catedit/static/css/style.css Wed Apr 08 15:59:57 2015 +0200 @@ -17,9 +17,14 @@ display: inline; } -.navbar-form +div.navbar-form-container { - width: 250px; + width: 10px; +} + +.navbar-form .form-control +{ + width: 210px; vertical-align: middle; display: inline-block; } @@ -29,7 +34,7 @@ vertical-align: middle; } -.select-repo +select.select-repo { float:right; }