Przeglądaj źródła

[#350] btn add new member is now more clear

Skylsmoi 6 lat temu
rodzic
commit
bf2983f4c7

+ 1 - 1
tracim/tracim/public/assets/css/dashboard.css Wyświetl plik

603
   color: #31708f;
603
   color: #31708f;
604
 }
604
 }
605
 .content__home__tab__content-unread {
605
 .content__home__tab__content-unread {
606
-    float: right;
606
+  float: right;
607
   margin-bottom: 15px;
607
   margin-bottom: 15px;
608
 }
608
 }
609
 
609
 

+ 1 - 1
tracim/tracim/templates/admin/workspace_getone.mak Wyświetl plik

53
         % if potential_new_user_nb<=0:
53
         % if potential_new_user_nb<=0:
54
             ${TITLE.H3(_('Members'), 'fa-user', 'workspace-members')}
54
             ${TITLE.H3(_('Members'), 'fa-user', 'workspace-members')}
55
         % else:
55
         % else:
56
-            ${TITLE.H3_WITH_BUTTON(fake_api.current_user, result.workspace, 'workspace-members', _('Members'), 'add-role-from-existing-user-form', _('add one...'), 'fa-user')}
56
+            ${TITLE.H3_WITH_BUTTON(fake_api.current_user, result.workspace, 'workspace-members', _('Members'), 'add-role-from-existing-user-form', _('add one...'), 'fa-user', 'btn btn-link')}
57
 
57
 
58
             <div id="add-role-from-existing-user-form" class="collapse col-sm-9">
58
             <div id="add-role-from-existing-user-form" class="collapse col-sm-9">
59
                 <div class="pod-inline-form">
59
                 <div class="pod-inline-form">

+ 2 - 2
tracim/tracim/templates/widgets/title.mak Wyświetl plik

7
         ${label}
7
         ${label}
8
     </h3>
8
     </h3>
9
 </%def>
9
 </%def>
10
-<%def name="H3_WITH_BUTTON(current_user, workspace, dom_id, label, action_dom_id='', action_label='', fa_icon='')">
10
+<%def name="H3_WITH_BUTTON(current_user, workspace, dom_id, label, action_dom_id='', action_label='', fa_icon='', custom_classes='')">
11
     <h3 id="${dom_id}">
11
     <h3 id="${dom_id}">
12
         ${ICON.FA('t-less-visible '+fa_icon) if fa_icon else ''}
12
         ${ICON.FA('t-less-visible '+fa_icon) if fa_icon else ''}
13
         ${label}
13
         ${label}
15
         ## Button is shown for contributors (or more), not for readers
15
         ## Button is shown for contributors (or more), not for readers
16
         % if h.user_role(current_user, workspace)>1:
16
         % if h.user_role(current_user, workspace)>1:
17
             % if action_dom_id and action_label:
17
             % if action_dom_id and action_label:
18
-                <small class="t-spacer-left">${BUTTON.DATA_TARGET_AS_TEXT(action_dom_id, action_label)}</small>
18
+                <small class="t-spacer-left">${BUTTON.DATA_TARGET_AS_TEXT(action_dom_id, action_label, custom_classes)}</small>
19
             % endif
19
             % endif
20
         % endif
20
         % endif
21
     </h3>
21
     </h3>