Move dirtag.xul and *.rdf generation into CherryPy.
[dirtag.git] / template / dirtag.xul
similarity index 94%
rename from static/dirtag.xul
rename to template/dirtag.xul
index cf5ac73104a6ba7161e00804f5f2c5558272c0c2..a6d6920cc47143a5403bbd1036c3c11babd29061 100644 (file)
@@ -1,12 +1,12 @@
 <?xml version="1.0"?>
-<?xml-stylesheet href="dirtag.css" type="text/css"?>
+<?xml-stylesheet href="/static/dirtag.css" type="text/css"?>
 
 <!-- Firefox doesn't load external DTDs for web-served XML,
     https://developer.mozilla.org/en/XML_in_Mozilla#DTDs_and_Other_External_Entities
   so we use and internal DOCTYPE.  This does make localization a bit
   more annoying. -->
 <!DOCTYPE window [
-  <!ENTITY window.title "TODO: Title">
+  <!ENTITY window.title "{{ repository_name }}">
   <!ENTITY XUL_note.text.pre_XUL "DirTag uses ">
   <!ENTITY XUL_note.text.XUL_to_Firefox ", an XML user interface markup language developed by the Mozilla project.  You probably need to view this page using ">
   <!ENTITY XUL_note.text.post_Firefox ".">
@@ -28,7 +28,7 @@
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    >
 
-  <script type="application/javascript" src="dirtag.js"/>
+  <script type="application/javascript" src="/static/dirtag.js"/>
   <groupbox id="new-tag">
     <caption label="&new_tag.caption;"/>
     <hbox>
@@ -53,7 +53,7 @@
        <tabpanels flex="1">
          <tabpanel flex="1">
            <tree id="raw-tree" rows="2" seltype="single" flex="1"
-                 datasources="raw-tree.rdf" ref="http://dirtag.com/raw/files"
+                 datasources="raw.rdf" ref="http://dirtag.com/raw/files"
                  flags="dont-build-content" onselect="raw_tree_select();">
              <treecols>
                <treecol id="tab-tree-path-column" label="&path_column.label;" primary="true"
@@ -78,7 +78,7 @@
          </tabpanel>
          <tabpanel flex="1">
            <tree id="tag-tree" rows="2" seltype="single" flex="1"
-                 datasources="tag-tree.rdf raw-tree.rdf"
+                 datasources="tag.rdf raw.rdf"
                  ref="http://dirtag.com/tag/files"
                  flags="dont-build-content" onselect="tag_tree_select();">
              <treecols>
        <caption label="&tags.caption;"/>
        <tree id="checkbox-tree" rows="2" seltype="single" selstype="primary"
              editable="true"
-             datasources="tag-tree.rdf raw-tree.rdf"
+             datasources="tag.rdf raw.rdf"
              ref="http://dirtag.com/tag/files"
              flex="1">
          <!-- checkbox callback attached in dirtag.js's initialize() -->