Explorar el Código

Drops old /user/me page

Adrien Panay hace 7 años
padre
commit
d843b59636

+ 0 - 11
tracim/tracim/controllers/admin/user.py Ver fichero

@@ -456,14 +456,3 @@ class UserRestController(TIMRestController):
456 456
         if next_url=='user':
457 457
             tg.redirect(self.url(id=user.user_id))
458 458
         tg.redirect(self.url())
459
-
460
-
461
-    @tg.require(predicates.in_group(Group.TIM_USER_GROUPNAME))
462
-    @tg.expose('tracim.templates.user_profile')
463
-    def me(self):
464
-        current_user = tmpl_context.current_user
465
-
466
-        current_user_content = Context(CTX.CURRENT_USER).toDict(current_user)
467
-        fake_api = Context(CTX.ADMIN_WORKSPACE).toDict({'current_user': current_user_content})
468
-
469
-        return DictLikeClass(fake_api=fake_api)

+ 0 - 70
tracim/tracim/templates/user_profile.mak Ver fichero

@@ -1,70 +0,0 @@
1
-<%inherit file="local:templates.master_authenticated"/>
2
-<%namespace name="TIM" file="tracim.templates.pod"/>
3
-<%namespace name="TOOLBAR" file="tracim.templates.user_toolbars"/>
4
-<%namespace name="WIDGETS" file="tracim.templates.user_workspace_widgets"/>
5
-<%def name="title()">${_('My profile')}</%def>
6
-
7
-<div class="container-fluid">
8
-    <div class="row-fluid">
9
-        ${TOOLBAR.USER(fake_api.current_user, fake_api.current_user)}
10
-        <div>
11
-            <div class="row">
12
-                <h3 class="col-sm-11">${TIM.ICO(32, 'actions/contact-new')} ${_("User profile")}</h3>
13
-            </div>
14
-            <div class="row">
15
-                <div class="col-sm-4" id='user-profile-global-info'>
16
-                    <div class="well well-sm">
17
-                        <h3>
18
-                            ${fake_api.current_user.name}
19
-                        </h3>
20
-                        <p>
21
-                            ${TIM.ICO(16, 'apps/internet-mail')}
22
-                            <a href="mailto:${fake_api.current_user.email}">${fake_api.current_user.email}</a>
23
-                        </p>
24
-                        <p>
25
-                            % if fake_api.current_user.profile.id>=2:
26
-                                <span>${TIM.ICO(16, 'emblems/emblem-checked')} ${_('I can create workspaces.')}</span><br/>
27
-                            % endif
28
-                            % if fake_api.current_user.profile.id>=3:
29
-                                <span>${TIM.ICO(16, 'emblems/emblem-checked')} ${_('I\'m an administrator.')}</span><br/>
30
-                            % endif
31
-                        </p>
32
-                    </div>
33
-                </div>
34
-
35
-                <div class="col-sm-4" id='user-profile-global-info'>
36
-                    <div class="well well-sm">
37
-                        <h3>
38
-                            ${TIM.ICO(22, 'places/folder-remote')}
39
-                            ${_('Workspaces')}
40
-                        </h3>
41
-                        % if len(fake_api.current_user.roles)<=0:
42
-                            ${WIDGETS.EMPTY_CONTENT(_('This user is not member of any workspace.'))}
43
-                        % else:
44
-                            <table class="table">
45
-                                % for role in fake_api.current_user.roles:
46
-                                    <tr><td>${role.workspace.name}</td><td><span style="${role.style}">${role.label}</span></td></tr>
47
-                                % endfor
48
-                            </table>
49
-                        % endif
50
-                    </div>
51
-                </div>
52
-            </div>
53
-        </div>
54
-    </div>
55
-</div>
56
-
57
-<div id="user-edit-modal-dialog" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
58
-  <div class="modal-dialog modal-sm">
59
-    <div class="modal-content">
60
-    </div>
61
-  </div>
62
-</div>
63
-
64
-<div id="user-edit-password-modal-dialog" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
65
-  <div class="modal-dialog modal-sm">
66
-    <div class="modal-content">
67
-    </div>
68
-  </div>
69
-</div>
70
-