Bläddra i källkod

[closes #85] added design for archived and deleted content

Come 7 år sedan
förälder
incheckning
de2980e916

Binär
tracim/tracim/i18n/fr/LC_MESSAGES/tracim.mo Visa fil


+ 14 - 0
tracim/tracim/i18n/fr/LC_MESSAGES/tracim.po Visa fil

@@ -1819,6 +1819,20 @@ msgstr ""
1819 1819
 "Vous consultez <b>une ancienne version</b> de la page courante. (la "
1820 1820
 "version affichée est la v{})."
1821 1821
 
1822
+#: tracim/templates/page/getone.mak:61
1823
+#: tracim/templates/folder/getone.mak:61
1824
+#: tracim/templates/thread/getone.mak:61
1825
+#: tracim/templates/file/getone.mak:61
1826
+msgid "You are viewing <b>an archived version</b> of the current page."
1827
+msgstr "Vous consultez <b>une version archivée</b> de la page courante."
1828
+
1829
+#: tracim/templates/page/getone.mak:61
1830
+#: tracim/templates/folder/getone.mak:61
1831
+#: tracim/templates/thread/getone.mak:61
1832
+#: tracim/templates/file/getone.mak:61
1833
+msgid "You are viewing <b>a deleted version</b> of the current page."
1834
+msgstr "Vous consultez <b>une version supprimée</b> de la page courante."
1835
+
1822 1836
 #: tracim/templates/page/getone.mak:72 tracim/templates/thread/getone.mak:61
1823 1837
 msgid "<b>This information is deprecated</b>"
1824 1838
 msgstr "<b>Cette information est obsolète</b>"

+ 22 - 2
tracim/tracim/public/assets/css/dashboard.css Visa fil

@@ -397,8 +397,28 @@ span.info.readonly {
397 397
 .folder__filter a.btn {
398 398
   font-size: 14px;
399 399
 }
400
-.folder__list__item__status {
400
+.folder__content__list {
401
+  cursor: pointer;
402
+}
403
+.folder__content__list__item__title {
404
+  color: #428BCA;
405
+}
406
+.folder__content__list__item.archived,
407
+.folder__content__list__item.archived .t-less-visible,
408
+.folder__content__list__item.archived .folder__content__list__item__title,
409
+.folder__content__list__item.archived .folder__content__list__item__title > i {
410
+  color: #999;
411
+}
412
+.folder__content__list__item.deleted,
413
+.folder__content__list__item.deleted .t-less-visible,
414
+.folder__content__list__item.deleted .folder__content__list__item__title,
415
+.folder__content__list__item.deleted .folder__content__list__item__title > i {
416
+  color: #ccc;
417
+}
418
+.folder__content__list__item__status {
401 419
   float: right;
402 420
   font-size: 13px;
403
-  color: #999;
421
+}
422
+.folder__content__list__item__status.deleted i {
423
+  font-size: 14px;
404 424
 }

+ 2 - 2
tracim/tracim/templates/file/getone.mak Visa fil

@@ -62,7 +62,7 @@
62 62
     <div class="col-sm-7 col-sm-offset-3">
63 63
         <p>
64 64
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
65
-            Vous consultez <b>une version archivée</b> de la page courante.
65
+            ${_('Vous consultez <b>une version archivée</b> de la page courante.')|n}
66 66
         </p>
67 67
     </div>
68 68
 </div>
@@ -71,7 +71,7 @@
71 71
     <div class="col-sm-7 col-sm-offset-3">
72 72
         <p>
73 73
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
74
-            Vous consultez <b>une version supprimée</b> de la page courante.
74
+            ${_('Vous consultez <b>une version supprimée</b> de la page courante.')|n}
75 75
         </p>
76 76
     </div>
77 77
 </div>

+ 4 - 4
tracim/tracim/templates/folder/getone.mak Visa fil

@@ -61,7 +61,7 @@
61 61
     <div class="col-sm-7 col-sm-offset-3">
62 62
         <p>
63 63
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
64
-            Vous consultez <b>une version archivée</b> de la page courante.
64
+            ${_('Vous consultez <b>une version archivée</b> de la page courante.')|n}
65 65
         </p>
66 66
     </div>
67 67
 </div>
@@ -70,7 +70,7 @@
70 70
     <div class="col-sm-7 col-sm-offset-3">
71 71
         <p>
72 72
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
73
-            Vous consultez <b>une version supprimée</b> de la page courante.
73
+            ${_('Vous consultez <b>une version supprimée</b> de la page courante.')|n}
74 74
         </p>
75 75
     </div>
76 76
 </div>
@@ -146,13 +146,13 @@
146 146
             % if len(fake_api.sub_items) <= 0:
147 147
                 ${P.EMPTY_CONTENT(_('This folder has not yet content.'))}
148 148
             % else:
149
-                <table class="table table-striped table-hover tablesorter" id="current-folder-content-list">
149
+                <table class="table table-striped table-hover tablesorter folder__content__list" id="current-folder-content-list">
150 150
                     <thead>
151 151
                         <tr>
152
-                            <th>${_('Type')}</th>
153 152
                             <th>${_('Title')}</th>
154 153
                             <th>${_('Status')}</th>
155 154
                             <th>${_('Notes')}</th>
155
+                            <th>${_('Type')}</th>
156 156
                         </tr>
157 157
                     </thead>
158 158
                     <tbody>

+ 2 - 2
tracim/tracim/templates/page/getone.mak Visa fil

@@ -60,7 +60,7 @@
60 60
     <div class="col-sm-7 col-sm-offset-3">
61 61
         <p>
62 62
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
63
-            Vous consultez <b>une version archivée</b> de la page courante.
63
+            ${_('You are viewing <b>an archived version</b> of the current page.')|n}
64 64
         </p>
65 65
     </div>
66 66
 </div>
@@ -69,7 +69,7 @@
69 69
     <div class="col-sm-7 col-sm-offset-3">
70 70
         <p>
71 71
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
72
-            Vous consultez <b>une version supprimée</b> de la page courante.
72
+            ${_('You are viewing <b>a deleted version</b> of the current page.')|n}
73 73
         </p>
74 74
     </div>
75 75
 </div>

+ 2 - 2
tracim/tracim/templates/thread/getone.mak Visa fil

@@ -62,7 +62,7 @@
62 62
     <div class="col-sm-7 col-sm-offset-3">
63 63
         <p>
64 64
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
65
-            Vous consultez <b>une version archivée</b> de la page courante.
65
+            ${_('Vous consultez <b>une version archivée</b> de la page courante.')|n}
66 66
         </p>
67 67
     </div>
68 68
 </div>
@@ -71,7 +71,7 @@
71 71
     <div class="col-sm-7 col-sm-offset-3">
72 72
         <p>
73 73
             <span class="pull-left"><i class="fa fa-fw fa-2x fa-warning" alt="" title=""></i></span>
74
-            Vous consultez <b>une version supprimée</b> de la page courante.
74
+            ${_('Vous consultez <b>une version supprimée</b> de la page courante.')|n}
75 75
         </p>
76 76
     </div>
77 77
 </div>

+ 21 - 12
tracim/tracim/templates/widgets/table_row.mak Visa fil

@@ -55,10 +55,15 @@
55 55
 </%def>
56 56
 
57 57
 <%def name="CONTENT(content)">
58
-    <tr class="t-table-row-${content.type.type}">
59
-        <td>
58
+    <tr class="t-table-row-${content.type.type} folder__content__list__item ${'archived' if content.is_archived else ''} ${'deleted' if content.is_deleted else ''}"
59
+        onclick="document.location = '${content.url}'"> <!-- <a /> does not work on <tr /> -->
60
+
61
+        <td class="folder__content__list__item__title">
62
+            <i class="fa-fw ${content.type.icon} ${content.type.color}"></i> ${content.label}
63
+        </td>
64
+
65
+        <!--td class="folder__content__list__type">
60 66
             <span class="${content.type.color}">
61
-                <i class="fa-fw ${content.type.icon}"></i>
62 67
                 % if (content.is_archived) :
63 68
                     <i class="fa fa-archive fa-fw tracim-less-visible" title="Archivé"></i>
64 69
                 % elif (content.is_deleted) :
@@ -68,8 +73,8 @@
68 73
             </span>
69 74
 
70 75
             ## <span class="tracim-less-visible"><i class="fa fa-file-text-o fa-tw"></i> ${content}</span>
71
-        </td>
72
-        <td><a href="${content.url}">${content.label}</a></td>
76
+        </td-->
77
+
73 78
         % if 'folder' == content.type.id:
74 79
             <td class="text-center t-less-visible">-</td>
75 80
         % else:
@@ -86,16 +91,20 @@
86 91
                     <i class="fa fa-fw fa-close"></i>
87 92
                 % endif
88 93
 
89
-                <span class="t-less-visible">${content.status.label}</span>
90
-
94
+                <span class="t-less-visible">
95
+                  ${content.status.label}
96
+                  % if (content.is_archived) :
97
+                      - Archivé
98
+                  % elif (content.is_deleted) :
99
+                      - Supprimé
100
+                  % endif
101
+                </span>
91 102
 
92
-                % if (content.is_archived) :
93
-                    <div class="folder__list__item__status archived">Archivé</div>
94
-                % elif (content.is_deleted) :
95
-                    <div class="folder__list__item__status deleted">Supprimé</div>
96
-                % endif
97 103
             </td>
98 104
         % endif
105
+
99 106
         <td><span class="t-less-visible">${content.notes|n}</span></td>
107
+
108
+        <td>${content.type.label}</td>
100 109
     </tr>
101 110
 </%def>