Browse Source

Enables filter for empty folder

Adrien Panay 7 years ago
parent
commit
4ecc9c5287
1 changed files with 13 additions and 18 deletions
  1. 13 18
      tracim/tracim/templates/folder/getone.mak

+ 13 - 18
tracim/tracim/templates/folder/getone.mak View File

@@ -107,24 +107,19 @@
107 107
                     % endif
108 108
                 </div>
109 109
                 <div class="col-md-8 text-right">
110
-                    % if len(fake_api.sub_items) > 0:
111
-                        ## INFO - D.A. - 2015-05-25
112
-                        ## We hide filtering/search buttons if no content yet.
113
-                        ## This make the interface more easy to use
114
-                        <div class="btn-group" role="group" aria-label="...">
115
-                            ${BUTTON.TEXT('', 'btn btn-default disabled', _('hide...'))}
116
-
117
-                            % for content_type in result.folder.allowed_content_types:
118
-                                ${BUTTON.TEXT('toggle-{type}-visibility'.format(type=content_type.id), 'btn btn-default t-active-color disabled-has-priority', content_type.label)}
119
-                            % endfor
120
-                        </div>
121
-                        <p></p>
122
-                        ${UI.GENERIC_DISPLAY_VIEW_BUTTONS_CONTAINER(tg.url('/workspaces/{}/folders/{}'.format(result.folder.workspace.id, result.folder.id)))}
123
-                        <p></p>
124
-                        <div class="btn-group" role="group" aria-label="...">
125
-                            <input id="filtering"  type="text" class="form-control t-bg-grey" placeholder="${_('filter...')}" aria-describedby="basic-addon1">
126
-                        </div>
127
-                    % endif
110
+                    <div class="btn-group" role="group" aria-label="...">
111
+                        ${BUTTON.TEXT('', 'btn btn-default disabled', _('hide...'))}
112
+
113
+                        % for content_type in result.folder.allowed_content_types:
114
+                            ${BUTTON.TEXT('toggle-{type}-visibility'.format(type=content_type.id), 'btn btn-default t-active-color disabled-has-priority', content_type.label)}
115
+                        % endfor
116
+                    </div>
117
+                    <p></p>
118
+                    ${UI.GENERIC_DISPLAY_VIEW_BUTTONS_CONTAINER(tg.url('/workspaces/{}/folders/{}'.format(result.folder.workspace.id, result.folder.id)))}
119
+                    <p></p>
120
+                    <div class="btn-group" role="group" aria-label="...">
121
+                        <input id="filtering"  type="text" class="form-control t-bg-grey" placeholder="${_('filter...')}" aria-describedby="basic-addon1">
122
+                    </div>
128 123
                 </div>
129 124
             </div>
130 125
         </div>