Commit ef12e6d2 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Clean up styling of group home page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent a36074d6
{auto_escape off}
{if $sharedviews}
<div class="groupviewsection">
<h5>{str tag="viewssharedtogroupbyothers" section="view"}</h5>
<p>
<table class="fullwidth">
<table class="fullwidth listing">
{foreach from=$sharedviews item=view}
<tr class="{cycle values='r0,r1'}">
<td>
......@@ -26,12 +26,14 @@
</tr>
{/foreach}
</table>
{$pagination}
</p>
</div>
{/if}
{if $mysubmittedviews || $group_view_submission_form}
<h5>{str tag="submitaviewtogroup" section="view"}</h5>
<div class="groupviewsection">
{if $group_view_submission_form}
<h5>{str tag="submitaviewtogroup" section="view"}</h5>
{/if}
{if $mysubmittedviews}
{foreach from=$mysubmittedviews item=view}
<div>{$view.strsubmitted}</div>
......@@ -40,11 +42,12 @@
{if $group_view_submission_form}
<div>{$group_view_submission_form}</div>
{/if}
</div>
{/if}
{if $allsubmittedviews}
<div class="groupviewsection">
<h5>{str tag="viewssubmittedtogroup" section="view"}</h5>
<p>
<table class="fullwidth">
{foreach from=$allsubmittedviews item=view}
<tr class="{cycle values='r0,r1'}">
......@@ -63,8 +66,7 @@
</tr>
{/foreach}
</table>
{$pagination}
</p>
</div>
{/if}
{/auto_escape}
{if $foruminfo}
<table class="fullwidth s" id="groupforumtable">
<table class="fullwidth s listing">
{foreach from=$foruminfo item=postinfo}
<tr class="{cycle values='r0,r1'}">
<td><strong><a href="{$WWWROOT}interaction/forum/topic.php?id={$postinfo->topic|escape}#post{$postinfo->id}">{$postinfo->topicname}</a></strong></td>
......
......@@ -50,7 +50,13 @@ if (is_logged_in()) {
$view = group_get_homepage_view($group->id);
$viewcontent = $view->build_columns();
$smarty = smarty();
$stylesheets = array('<link rel="stylesheet" type="text/css" href="' . get_config('wwwroot') . 'theme/views.css">');
$smarty = smarty(
array(),
$stylesheets,
array(),
array('stylesheets' => array('style/views.css'))
);
$smarty->assign('viewid', $view->get('id'));
$smarty->assign('viewcontent', $viewcontent);
$smarty->assign('isadmin', $isadmin);
......
......@@ -77,7 +77,6 @@ h6 {
/* table with th border-bottom */
#searchresults thead th,
#filelist,
#groupforumtable,
.tag-results #results {
border-bottom: 1px solid #14436F;
}
......@@ -85,8 +84,7 @@ h6 {
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td,
#groupforumtable {
#activitylist tfoot td {
border-top: 1px solid #14436F;
}
.main-column table h3 a,
......
......@@ -65,7 +65,6 @@ h6 {
/* table with th border-bottom */
#searchresults thead th,
#filelist,
#groupforumtable,
.tag-results #results {
border-bottom: 1px solid #ccc;
}
......@@ -73,8 +72,7 @@ h6 {
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td,
#groupforumtable {
#activitylist tfoot td {
border-top: 1px solid #ccc;
}
.main-column table h3 a,
......
......@@ -75,7 +75,6 @@ h6 {
/* table with th border-bottom */
#searchresults thead th,
#filelist,
#groupforumtable,
.tag-results #results {
border-bottom: 1px dotted #BEE3F1;
}
......@@ -83,8 +82,7 @@ h6 {
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td,
#groupforumtable {
#activitylist tfoot td {
border-top: 1px dotted #BEE3F1;
}
.main-column table h3 a,
......
......@@ -182,7 +182,6 @@ td.narrow {
/* table with th border-bottom */
#searchresults thead th,
#filelist,
#groupforumtable,
.tag-results #results {
border-bottom: 1px solid #ccc;
}
......@@ -190,8 +189,7 @@ td.narrow {
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td,
#groupforumtable {
#activitylist tfoot td {
border-top: 1px solid #ccc;
}
/* table with gap between rows */
......
......@@ -5,7 +5,9 @@
<div class="groupdescription">{$GROUP->description}</div>
{/if}
<div class="grouphomepage">
{$viewcontent}
</div>
{include file="footer.tpl"}
{/auto_escape}
......@@ -77,7 +77,6 @@ h6 {
/* table with th border-bottom */
#searchresults thead th,
#filelist,
#groupforumtable,
.tag-results #results {
border-bottom: 1px dotted #8E1901;
}
......@@ -85,8 +84,7 @@ h6 {
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td,
#groupforumtable {
#activitylist tfoot td {
border-top: 1px dotted #8E1901;
}
.main-column table h3 a,
......
......@@ -82,7 +82,6 @@ h6 {
/* table with th border-bottom */
#searchresults thead th,
#filelist,
#groupforumtable,
.tag-results #results {
border-bottom: 1px dotted #360435;
}
......@@ -90,8 +89,7 @@ h6 {
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td,
#groupforumtable {
#activitylist tfoot td {
border-top: 1px dotted #360435;
}
.main-column table h3 a,
......
......@@ -310,6 +310,17 @@ html>body #column-container {
font-weight: bold;
}
/* group homepage */
.grouphomepage .column {
float: none;
}
.grouphomepage .bt-groupviews h5 {
margin: 0;
}
.grouphomepage .bt-groupviews .groupviewsection {
margin: 1em 0;
}
/* tabs for the artefact chooser */
ul.artefactchooser-tabs {
padding: 0 !important;
......
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