aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views')
-rw-r--r--mod/groups/views/default/groups/css.php34
-rw-r--r--mod/groups/views/default/groups/forum_latest.php13
2 files changed, 37 insertions, 10 deletions
diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php
index 8b1628395..8a88ef393 100644
--- a/mod/groups/views/default/groups/css.php
+++ b/mod/groups/views/default/groups/css.php
@@ -58,10 +58,6 @@
border:none;
}
-
-
-
-
.topic_title {
font-size: 1.2em;
line-height: 1.1em;
@@ -82,4 +78,32 @@
.forum_topics .even {
background-color:#f5f5f5;
padding: 4px;
-} \ No newline at end of file
+}
+
+
+/* latest discussions on group page */
+#latest_discussion_widget {
+ margin:0 0 20px 0;
+}
+.forum_latest {
+ margin:0 0 10px 0;
+}
+.forum_latest .topic_owner_icon {
+ position:absolute;
+}
+.forum_latest .topic_title {
+ margin-left:35px;
+}
+.forum_latest .topic_title p {
+ font-size: 0.8em;
+ line-height: 1.0em;
+ padding:0;
+ margin:0;
+}
+
+.forum_latest p.topic_replies {
+ color:#999999;
+ padding:3px 0 0 0;
+ margin:0;
+}
+
diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php
index 10392fa51..be9ad926a 100644
--- a/mod/groups/views/default/groups/forum_latest.php
+++ b/mod/groups/views/default/groups/forum_latest.php
@@ -1,6 +1,7 @@
+<div id="latest_discussion_widget">
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
-
+
$forum = get_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 0, $vars['entity']->guid, 4, 0, "asc", false);
if($forum){
@@ -9,8 +10,9 @@
$count_annotations = $f->countAnnotations("group_topic_post");
echo "<div class=\"forum_latest\">";
- echo "<div class=\"topic_title\"><p><a href=\"{$vars['url']}mod/groups/topicposts.php?topic={$f->guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "</a> (Replies: " . $count_annotations . ")</p></div>";
- echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "</div>";
+ echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "</div>";
+ echo "<div class=\"topic_title\"><p><a href=\"{$vars['url']}mod/groups/topicposts.php?topic={$f->guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "</a></p> <p class=\"topic_replies\"><small>Replies: " . $count_annotations . "</small></p></div>";
+
echo "</div>";
}
@@ -18,5 +20,6 @@
echo elgg_echo("grouptopic:notcreated");
}
-
-?> \ No newline at end of file
+?>
+<br class="clearfloat" />
+</div> \ No newline at end of file