[Rt-commit] rt branch, 4.4/remove-user-info, updated. rt-4.4.3-95-geaa15bbba
Craig Kaiser
craig at bestpractical.com
Thu Dec 13 17:15:59 EST 2018
The branch, 4.4/remove-user-info has been updated
via eaa15bbba74506b2abb3fa69c62062fceeea5fb7 (commit)
from 9210941c7c5e56c8208c49bda5511a91222cf18c (commit)
Summary of changes:
share/html/User/Elements/BasicUserData | 52 ++++++++++++++--------------------
share/static/css/base/misc.css | 20 +++++++++++++
share/static/css/base/test.css | 1 +
3 files changed, 43 insertions(+), 30 deletions(-)
create mode 100644 share/static/css/base/test.css
- Log -----------------------------------------------------------------
commit eaa15bbba74506b2abb3fa69c62062fceeea5fb7
Author: Craig Kaiser <craig at bestpractical.com>
Date: Thu Dec 13 17:15:20 2018 -0500
Update styling on "Manage User Data" portlet
diff --git a/share/html/User/Elements/BasicUserData b/share/html/User/Elements/BasicUserData
index b5bed02e7..c49fb1817 100644
--- a/share/html/User/Elements/BasicUserData
+++ b/share/html/User/Elements/BasicUserData
@@ -50,33 +50,25 @@
title => loc("Manage User Data"),
&>
-<table>
- <tr>
- <th align="left">Download User Data</th>
- <th align="left">Remove User Data</th>
- </tr>
- <tr>
- <td><a href="/User/BasicUserData.tsv?Type=User&id=<% $UserObj->id %>&Filename='UserData.tsv'" class="button"><% $UserDataButton %></a></td>
- <td>
- <a href="#user-info-modal" rel="modal:open" class="button value" name="anonymize_user"><&|/l&>Anonymize User</&></a>
- <span><&|/l&>Remove user information with anonymous username</&></span>
- </td>
- </tr>
- <tr>
- <td><a href="/Search/Results.tsv?Query=Requestor.id=<% $UserObj->id %>&Format=<% $Format | un %>&Filename='UserTicketData.tsv'" class="button"><% $UserTicketsButton %></a></td>
- <td>
- <a href="<%RT->Config->Get('WebPath')%>/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $UserObj->Name %>&Users%3Areplace_relations=Nobody&Search=Search" name="replace-user" class="button value"><&|/l&>Replace User</&></a>
- <span><&|/l&>Replace user links in the database with "Nobody" user</&></span>
- </td>
- </tr>
- <tr>
- <td><a href="/User/BasicUserData.tsv?Type=Transaction&id=<% $UserObj->id %>&Filename='UserTransactionData.tsv'" class="button"><% $UserTxnButton %></a></td>
- <td>
- <a href="<%RT->Config->Get('WebPath')%>/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $UserObj->Name %>&Search=Search&remove_user" class="button value" name="remove-user"><&|/l&>Remove User</&></a>
- <span> <&|/l&>Remove all references to user and links to user</&></span>
- </td>
- </tr>
-</table>
+<div>
+ <h4>Download User Information:</h4>
+ <div class="inline-row">
+ <div><a class="button" href="/User/BasicUserData.tsv?Type=User&id=<% $UserObj->id %>&Filename='UserData.tsv'"><% $UserDataButton %></a></div>
+ <div><a class="button" href="/Search/Results.tsv?Query=Requestor.id=<% $UserObj->id %>&Format=<% $Format | un %>&Filename='UserTicketData.tsv'"><% $UserTicketsButton %></a></div>
+ <div><a class="button" href="/User/BasicUserData.tsv?Type=Transaction&id=<% $UserObj->id %>&Filename='UserTransactionData.tsv'"><% $UserTxnButton %></a></div>
+ </div>
+ <h4>Remove User Information:</h4>
+ <div class="inline-row">
+ <div><a class="button" href="#user-info-modal" rel="modal:open" name="anonymize_user"><&|/l&>Anonymize User</&></a></div>
+ <div><a class="button" href="<%RT->Config->Get('WebPath')%>/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $UserObj->Name %>&Users%3Areplace_relations=Nobody&Search=Search" name="replace-user"><&|/l&>Replace User</&></a></div>
+ <div><a class="button" href="<%RT->Config->Get('WebPath')%>/Admin/Tools/Shredder/index.html?Plugin=Users&Users%3Astatus=enabled&Users%3Aname=<% $UserObj->Name %>&Search=Search&remove_user" name="remove-user"><&|/l&>Remove User</&></a></div>
+ </div>
+ <div class="inline-row">
+ <div><i class="label"><&|/l&><b>Anonymize User</b>: Remove user information with anonymous username</&></i></div>
+ <div><i class="label"><&|/l&><b>Replace User</b>: Replace user links in the database with "Nobody" user</&></i></div>
+ <div><i class="label"><&|/l&><b>Remove User</b>: Remove all references to user and links to user</&></i></div>
+ </div>
+</div>
</&>
<%INIT>
@@ -85,7 +77,7 @@ my $Format = RT->Config->Get('UserTicketDataResultFormat') || RT->Config->Get('D
<%ARGS>
$UserObj
-$UserDataButton => loc( 'Download User Data' )
-$UserTicketsButton => loc( 'Download User Tickets' )
-$UserTxnButton => loc( 'Download User Transaction Data' )
+$UserDataButton => loc( 'User Data' )
+$UserTicketsButton => loc( 'User Tickets' )
+$UserTxnButton => loc( 'User Transactions' )
</%ARGS>
diff --git a/share/static/css/base/misc.css b/share/static/css/base/misc.css
index 25ec20c69..3833eab61 100644
--- a/share/static/css/base/misc.css
+++ b/share/static/css/base/misc.css
@@ -127,3 +127,23 @@ td.current-recipients {
vertical-align: top;
padding-left: 50px;
}
+
+.inline-row {
+ display: inline-flex;
+ width: 80%;
+}
+
+div.inline-row div {
+ width: 100%;
+ display: inline-flex;
+}
+
+div.inline-row a {
+ text-align: center;
+ width: 100%;
+}
+
+div.inline-row i {
+ text-align: left;
+ width: 100%;
+}
diff --git a/share/static/css/base/test.css b/share/static/css/base/test.css
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/share/static/css/base/test.css
@@ -0,0 +1 @@
+
-----------------------------------------------------------------------
More information about the rt-commit
mailing list