From f8db566f4e476eaf2a82d4277e4d18ba5d29f4b0 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 28 Nov 2018 13:02:28 -0500 Subject: [PATCH] Remove user info mako --- templates/user/info.mako | 130 ------------------ .../webapps/tool_shed/user/manage_info.mako | 127 ++++++++++++++++- 2 files changed, 125 insertions(+), 132 deletions(-) delete mode 100644 templates/user/info.mako diff --git a/templates/user/info.mako b/templates/user/info.mako deleted file mode 100644 index 9a87a84c03e..00000000000 --- a/templates/user/info.mako +++ /dev/null @@ -1,130 +0,0 @@ -<%inherit file="/base.mako"/> - -<% is_admin = cntrller == 'admin' and trans.user_is_admin %> - -<%def name="render_user_info()"> - - - - -

Manage User Information

- %if not is_admin: - - %endif -
-
-
Login Information
-
- - -
- If you change your email address you will receive an activation link in the new mailbox and you have to activate your account by visiting it. -
-
-
- - %if t.webapp.name == 'tool_shed': - %if user.active_repositories: - - ${username | h} -
- You cannot change your public name after you have created a repository in this Tool Shed. -
- %else: - -
- Your public name provides a means of identifying you publicly within this Tool Shed. Public - names must be at least three characters in length and contain only lower-case letters, numbers, - dots, underscores, and dashes ('.', '_', '-'). You cannot change your public name after you have created a repository - in this Tool Shed. -
- %endif - %else: - -
- Your public name is an identifier that will be used to generate addresses for information - you share publicly. Public names must be at least three characters in length and contain only lower-case - letters, numbers, dots, underscores, and dashes ('.', '_', '-'). -
- %endif -
-
- -
-
-
- diff --git a/templates/webapps/tool_shed/user/manage_info.mako b/templates/webapps/tool_shed/user/manage_info.mako index a1242878698..e1e7e99aa34 100644 --- a/templates/webapps/tool_shed/user/manage_info.mako +++ b/templates/webapps/tool_shed/user/manage_info.mako @@ -1,9 +1,132 @@ <%inherit file="/base.mako"/> -<%namespace file="/user/info.mako" import="render_user_info" /> <%namespace file="/message.mako" import="render_msg" /> +<% is_admin = cntrller == 'admin' and trans.user_is_admin %> + %if message: ${render_msg( message, status )} %endif -${render_user_info()} + + + +

Manage User Information

+%if not is_admin: + +%endif +
+
+
Login Information
+
+ + +
+ If you change your email address you will receive an activation link in the new mailbox and you have to activate your account by visiting it. +
+
+
+ + %if t.webapp.name == 'tool_shed': + %if user.active_repositories: + + ${username | h} +
+ You cannot change your public name after you have created a repository in this Tool Shed. +
+ %else: + +
+ Your public name provides a means of identifying you publicly within this Tool Shed. Public + names must be at least three characters in length and contain only lower-case letters, numbers, + dots, underscores, and dashes ('.', '_', '-'). You cannot change your public name after you have created a repository + in this Tool Shed. +
+ %endif + %else: + +
+ Your public name is an identifier that will be used to generate addresses for information + you share publicly. Public names must be at least three characters in length and contain only lower-case + letters, numbers, dots, underscores, and dashes ('.', '_', '-'). +
+ %endif +
+
+ +
+
+