Browse Source

strike through documents that are archived or closed

damien 11 years ago
parent
commit
94bf7b5f03
2 changed files with 12 additions and 2 deletions
  1. 6 2
      pboard/pboard/model/data.py
  2. 6 0
      pboard/pboard/templates/dashboard.mak

+ 6 - 2
pboard/pboard/model/data.py View File

@@ -55,6 +55,10 @@ class PBNodeStatusItem(object):
55 55
     return self._sStatusLabel
56 56
     
57 57
   @property
58
+  def status_family(self):
59
+    return self._sStatusFamily
60
+    
61
+  @property
58 62
   def icon(self):
59 63
     return self._sIconId
60 64
     
@@ -81,8 +85,8 @@ class PBNodeStatus(object):
81 85
     
82 86
   StatusList = dict()
83 87
   StatusList['immortal']   = PBNodeStatusItem('immortal',   'Information', 'normal', 'icon-g-circle-info',            'pod-status-grey-light')
84
-  StatusList['new']        = PBNodeStatusItem('new',        'New',         'open',   'icon-g-lightbulb icon-g-white', 'btn-success')
85
-  StatusList['inprogress'] = PBNodeStatusItem('inprogress', 'In progress', 'open',   ' icon-g-roundabout icon-g-white', 'btn-info')
88
+  StatusList['new']        = PBNodeStatusItem('new',        'New',         'open',   'icon-g-lightbulb icon-g-white', 'btn-info')
89
+  StatusList['inprogress'] = PBNodeStatusItem('inprogress', 'In progress', 'open',   ' icon-g-roundabout icon-g-white', 'btn-success')
86 90
   StatusList['standby']    = PBNodeStatusItem('standby',    'In Standby',  'open',   'icon-g-clock icon-g-white', 'btn-warning')
87 91
   StatusList['hot']        = PBNodeStatusItem('hot',        'Hot',         'open',   'icon-g-warning-sign icon-g-white', 'btn-danger')
88 92
   StatusList['done']       = PBNodeStatusItem('done',       'Done',        'closed', 'icon-g-ok-2', 'pod-status-grey-light')

+ 6 - 0
pboard/pboard/templates/dashboard.mak View File

@@ -38,7 +38,13 @@
38 38
       % for node in node_list:
39 39
         <div class="pod-toolbar-parent" style="padding-left: ${(indentation+2)*0.5}em; position: relative;">
40 40
           <a href="?node=${node.node_id}" title="${node.data_label}">
41
+            % if node.getStatus().status_family=='closed' or node.getStatus().status_family=='invisible':
42
+              <strike>
43
+            % endif
41 44
             <i class='${node.getIconClass()}'></i> ${node.getTruncatedLabel(32-0.8*(indentation+1))}
45
+            % if node.getStatus().status_family=='closed' or node.getStatus().status_family=='invisible':
46
+              </strike>
47
+            % endif
42 48
           </a>
43 49
           <div class="pod-toolbar">
44 50
             <a href="${tg.url('/move_node_upper?node_id=%i'%(node.node_id))}" title="${_('Move up')}"><i class="icon-g-up-arrow"></i></a>