Commit f86ac830 authored by Liam Sharpe's avatar Liam Sharpe

Styled the participation report page - Bug #1529713

NOTE: Does not include the fix for:
"2. All columns should be sortable, but it doesn't
work properly for me. I could only get the first column
under "Pages shared with this group" to sort and that
sorted also "Pages owned by this group"."

behatnotneeded

Change-Id: If043d94dab3d52fea7c8d1e70910d6e5bd45a41b
parent 64715831
...@@ -311,3 +311,20 @@ ...@@ -311,3 +311,20 @@
.panel-secondary > .panel-heading { .panel-secondary > .panel-heading {
font-size: 18px; font-size: 18px;
} }
.table thead {
a::after {
font-family: 'FontAwesome';
position: relative;
top: -3px;
margin-left: 3px;
color: #888;
}
.asc>a::after {
content: '\f0dd';
}
.sorted>a::after {
content: '\f0de';
top: 2px;
}
}
{if count($items) > 0} {if count($items) > 0}
{foreach from=$items item=view} {foreach from=$items item=view}
<tr class="{cycle values='r0,r1'}"> <tr class="{cycle values='r0,r1'}">
<td class="sv"><h3 class="title"><a href="{$view->url}">{$view->title}</a></h3></td> <td class="sv"><a href="{$view->url}">{$view->title}</a></td>
<td class="mc"><label class="hidden">{str tag=membercommenters section=group}: </label> <td class="mc"><label class="hidden">{str tag=membercommenters section=group}: </label>
<ul> <ul>
{foreach from=$view->comments key=commenter item=info} {foreach from=$view->comments key=commenter item=info}
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
{/foreach} {/foreach}
{else} {else}
<tr class="{cycle values='r0,r1'}"><td colspan="3" class="message">{str tag=noviewssharedwithgroupyet section=group}</td></tr> <tr class="{cycle values='r0,r1'}"><td colspan="3" class="message">{str tag=noviewssharedwithgroupyet section=group}</td></tr>
{/if} {/if}
\ No newline at end of file
{if $itemcount} {if $itemcount}
{foreach from=$items item=view} {foreach from=$items item=view}
<tr class="{cycle values='r0,r1'}"> <tr class="{cycle values='r0,r1'}">
<td class="sv"><h3 class="title"><a href="{$view->url}">{$view->title}</a></h3></td> <td class="sv"><a href="{$view->url}">{$view->title}</a></td>
<td class="sb"><label class="hidden">{str tag=sharedby section=view}: </label> <td class="sb"><label class="hidden">{str tag=sharedby section=view}: </label>
{if $view->owner} {if $view->owner}
<a href="{$WWWROOT}user/view.php?id={$view->owner}">{$view->owner|display_name:null:true}</a> <a href="{$WWWROOT}user/view.php?id={$view->owner}">{$view->owner|display_name:null:true}</a>
...@@ -35,4 +35,4 @@ ...@@ -35,4 +35,4 @@
{/foreach} {/foreach}
{else} {else}
<tr class="{cycle values='r0,r1'}"><td colspan="4" class="message">{str tag=noviewssharedwithgroupyet section=group}</td></tr> <tr class="{cycle values='r0,r1'}"><td colspan="4" class="message">{str tag=noviewssharedwithgroupyet section=group}</td></tr>
{/if} {/if}
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{str tag=noviewssharedwithgroupyet section=group} {str tag=noviewssharedwithgroupyet section=group}
</p> </p>
{else} {else}
<table id="sharedviewsreport" class="fullwidth groupreport"> <table id="sharedviewsreport" class="fullwidth groupreport table table-striped">
<thead> <thead>
<tr> <tr>
<th class="sv {if $sort == title && $direction == asc}asc{elseif $sort == title}sorted{/if}"> <th class="sv {if $sort == title && $direction == asc}asc{elseif $sort == title}sorted{/if}">
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
{str tag=grouphasntcreatedanyviewsyet section=group} {str tag=grouphasntcreatedanyviewsyet section=group}
</p> </p>
{else} {else}
<table id="groupviewsreport" class="fullwidth groupreport"> <table id="groupviewsreport" class="fullwidth groupreport table table-striped">
<thead> <thead>
<tr> <tr>
<th class="sv {if $sort == title && $direction == asc}asc{elseif $sort == title}sorted{/if}"> <th class="sv {if $sort == title && $direction == asc}asc{elseif $sort == title}sorted{/if}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment