Browse Source

Merge pull request #374 from tracim/fix/367/display_folder_filters

Damien Accorsi 6 years ago
parent
commit
4e360924f1
1 changed files with 12 additions and 17 deletions
  1. 12 17
      tracim/tracim/templates/workspace/getone.mak

+ 12 - 17
tracim/tracim/templates/workspace/getone.mak View File

@@ -193,23 +193,18 @@
193 193
                     % endif
194 194
                 </div>
195 195
                 <div class="col-md-8 text-right">
196
-                    % if len(fake_api.sub_items) > 0:
197
-                        ## INFO - D.A. - 2015-05-25
198
-                        ## We hide filtering/search buttons if no content yet.
199
-                        ## This make the interface more easy to use
200
-                        <div class="btn-group" role="group" aria-label="...">
201
-                            ${BUTTON.TEXT('', 'btn btn-default disabled', _('hide...'))}
202
-                            % for content_type in result.workspace.allowed_content_types:
203
-                                ${BUTTON.TEXT('toggle-{type}-visibility'.format(type=content_type.id), 'btn btn-default t-active-color disabled-has-priority', content_type.label)}
204
-                            % endfor
205
-                        </div>
206
-                        <p></p>
207
-                        ${UI.GENERIC_DISPLAY_VIEW_BUTTONS_CONTAINER(tg.url('/workspaces/{}'.format(result.workspace.id)))}
208
-                        <p></p>
209
-                        <div class="btn-group pull-right" role="group" aria-label="...">
210
-                            <input id="filtering"  type="text" class="form-control t-bg-grey" placeholder="${_('filter...')}" aria-describedby="basic-addon1">
211
-                        </div>
212
-                    % endif
196
+                    <div class="btn-group" role="group" aria-label="...">
197
+                        ${BUTTON.TEXT('', 'btn btn-default disabled', _('hide...'))}
198
+                        % for content_type in result.workspace.allowed_content_types:
199
+                            ${BUTTON.TEXT('toggle-{type}-visibility'.format(type=content_type.id), 'btn btn-default t-active-color disabled-has-priority', content_type.label)}
200
+                        % endfor
201
+                    </div>
202
+                    <p></p>
203
+                    ${UI.GENERIC_DISPLAY_VIEW_BUTTONS_CONTAINER(tg.url('/workspaces/{}'.format(result.workspace.id)))}
204
+                    <p></p>
205
+                    <div class="btn-group pull-right" role="group" aria-label="...">
206
+                        <input id="filtering"  type="text" class="form-control t-bg-grey" placeholder="${_('filter...')}" aria-describedby="basic-addon1">
207
+                    </div>
213 208
                 </div>
214 209
 
215 210