Commits

Guido Draheim committed c5da1ff

global nav as links / use new global css

  • Participants
  • Parent commits b2fc039

Comments (0)

Files changed (7)

src/dvbcronrecording/channels.py

         data['_'] = translate
         add_stylesheet(req, 'common/css/wiki.css')
         add_stylesheet(req, PACKAGE+'/css/recordingchannels.css')
+        add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
         add_script(req, 'common/js/trac.js')
         add_script(req, 'common/js/wikitoolbar.js')
         return ('channels_list.html', data, None)
         data['_'] = translate
         add_stylesheet(req, 'common/css/wiki.css')
         add_stylesheet(req, PACKAGE+'/css/recordingchannels.css')
+        add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
         add_script(req, 'common/js/trac.js')
         add_script(req, 'common/js/wikitoolbar.js')
         return ('channels_text.html', data, None)

src/dvbcronrecording/channelsconf.py

             data['text'] = self.loadtext(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordingchannelsconf.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('channelsconf_editor.html', data, None)
         if page in [ "edit" ]:
             data['text'] = self.loadtext(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordingchannelsconf.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('channelsconf_editor.html', data, None)
         if page in [ "take", "takeover" ]:
             data['urlencode'] = urlencode
             data['q'] = q
             add_stylesheet(req, PACKAGE+'/css/recordingchannelsconf.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('channelsconf_take.html', data, None)
         
 
         add_stylesheet(req, 'common/css/wiki.css')
         add_stylesheet(req, PACKAGE+'/css/recordingchannelsconf.css')
+        add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
         add_script(req, 'common/js/trac.js')
         add_script(req, 'common/js/wikitoolbar.js')
         

src/dvbcronrecording/core.py

             data['entries'] = self._makefile_entries(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingmakefile.html', data, None)
         if page in [ 'cronfile' ]:
             data['cronlines'] = self._crontablines(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingcronfile.html', data, None)
         if page in [ 'plan' ]:
             data['recordings'] = self._recording_plan(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingplan.html', data, None)
         if page in [ 'activate' ]:
             data['cronlines'] = crontab_list # + [ " ============= "] + makefile_list
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingcronfile.html', data, None)
         if page in [ "save" ]:
             data['text'] = self.loadtext(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingeditor.html', data, None)
         if page in [ "edit" ]:
             data['text'] = self.loadtext(req)
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingeditor.html', data, None)
             
         data['_'] = translate
 
         add_stylesheet(req, 'common/css/wiki.css')
-        add_stylesheet(req, '%s/css/recordinglist.css' % (PACKAGE))
+        add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+        add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
         add_script(req, '%s/js/jquery.ui.datepicker.js' % (PACKAGE))
         if req.locale:
             add_script(req, '%s/js/jquery.ui.datepicker-%s.js' % (PACKAGE, req.locale))

src/dvbcronrecording/files.py

             data['videotype'] = videotype
             data['_'] = translate
             add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+            add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
             add_script(req, 'common/js/trac.js')
             return ('recordingfiles.html', data, None)
         message = ""
         data['message'] = unicode(message)
         data["_"] = translate
         add_stylesheet(req, PACKAGE+'/css/recordinglist.css')
+        add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
         add_script(req, 'common/js/trac.js')
         return ('recordingfiles.html', data, None)
     def _file_entries(self, req):

src/dvbcronrecording/htdocs/css/dvbcronrecording.css

+.dvbcronpages { display: block; margin: 0.5em 2px; padding: 0 0; }
+.dvbcronpages li { display: inline; margin: 0 0; padding: 0 0; }
+.dvbcronpages a { color: black; font-weight: bold; text-decoration: none;
+        padding: 2px 1em;
+       border: 1px outset gray; background-color: #EEE;
+}
+

src/dvbcronrecording/templates/channels_nav.html

-  <div class="actionlist">
-          <form method="get" action="${href.recording('list')}" class="actionform">
-            <input type="submit" value="${_('recording list')}" class="actionbutton"></input>
-          </form>
-          <form method="get" action="${href.recording('channels/list')}" class="actionform">
-            <input type="submit" value="${_('channel list')}" class="actionbutton"></input>
-          </form>
-          <form method="get" action="${href.recording('file/list')}" class="actionform">
-            <input type="submit" value="${_('show recorded files')}" class="actionbutton"></input>
-          </form>
-  </div>
+  <ul class="dvbcronpages">
+     <li><a href="${href.recording('list')}">${_('recording list')}</a></li>
+     <li><a href="${href.recording('channels/list')}">${_('channel list')}</a></li>
+     <li><a href="${href.recording('file/list')}">${_('show recorded files')}</a></li>
+  </ul>
   

src/dvbcronrecording/tuning.py

 
         add_stylesheet(req, 'common/css/wiki.css')
         add_stylesheet(req, PACKAGE+'/css/tuninglist.css')
+        add_stylesheet(req, PACKAGE+'/css/dvbcronrecording.css')
         add_script(req, 'common/js/trac.js')
         add_script(req, 'common/js/wikitoolbar.js')