From 0450c15062f7c9f7117c935283a6d79fef7680bf Mon Sep 17 00:00:00 2001 From: Yasin <mohammed-yasin.rahman@lip6.fr> Date: Mon, 9 Sep 2013 15:23:42 +0200 Subject: [PATCH] CSS: cosmetic changes to My Account --- portal/static/css/account_view_html.css | 2 +- portal/templates/account-view.html | 44 +++++++++++++++---------- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/portal/static/css/account_view_html.css b/portal/static/css/account_view_html.css index ee6b05e0..0b1b6bb9 100644 --- a/portal/static/css/account_view_html.css +++ b/portal/static/css/account_view_html.css @@ -205,7 +205,7 @@ ul.errorlist li { -table.mytable {margin: auto; border-collapse: collapse; border: 1px solid #839E99; +table.mytable { border-collapse: collapse; border: 1px solid #839E99; background: #f1f8ee; font: .9em/1.2em Georgia, "Times New Roman", Times, serif; color: #033;table-layout:fixed; } .mytable caption { font-size: 1.3em; font-weight: bold; text-align: left; padding: 1em 4px; } .mytable td, th { padding: 3px 3px .75em 3px; line-height: 1.3em; } diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index e8edc600..a5d01dcd 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -10,24 +10,34 @@ {% block unfold1_main %} -<h2>Platform Access</h2> -<table class="mytable"> - <tr class="odd"> - <th>Platform</th> - <th>Account Type</th> - <th>user_hrn</th> - <th>Pub Key</th> - </tr> - {% for row in data %} - <tr class="even"> - <td class="odd"> {{ row.platform_name }} </td> - <td class="even"> {{ row.account_type }} </td> - <td class="odd"> {{ row.usr_hrn }} </td> - <td class="even"> {{ row.usr_pubkey }} </td> - </tr> - {%endfor%} -</table> +<div class='ms-dashboard-panel' id='ms-dashboard-slices' style=" display:block; float:none" > + <div class='ms-dashboard-caption'> + <h2>Platform Access</h2> + </div> + <div class='ms-dashboard-content' id='tophat__list__user_hrn'> + <div id="main"> + <div id="middle" align="center"> + <table class="mytable"> + <tr class="odd"> + <th>Platform</th> + <th>Account Type</th> + <th>user_hrn</th> + <th>Pub Key</th> + </tr> + {% for row in data %} + <tr class="even"> + <td class="odd"> {{ row.platform_name }} </td> + <td class="even"> {{ row.account_type }} </td> + <td class="odd"> {{ row.usr_hrn }} </td> + <td class="even"> {{ row.usr_pubkey }} </td> + </tr> + {%endfor%} + </table> + </div> + </div> + </div> +</div> -- 2.47.0