From c41553d5e532ca86070d511d50d150d97869bb84 Mon Sep 17 00:00:00 2001 From: pete Date: Fri, 12 Mar 2010 15:53:03 +0000 Subject: Updated/cleaned-up generic comments with new UI. git-svn-id: http://code.elgg.org/elgg/trunk@5377 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/annotation/annotate.php | 2 +- views/default/annotation/generic_comment.php | 55 +++++++++++------------ views/default/annotation/latest_comments.php | 7 +-- views/default/css.php | 65 ++++++++++++++++++++++------ 4 files changed, 80 insertions(+), 49 deletions(-) (limited to 'views') diff --git a/views/default/annotation/annotate.php b/views/default/annotation/annotate.php index a1940bed7..e66035204 100644 --- a/views/default/annotation/annotate.php +++ b/views/default/annotation/annotate.php @@ -14,7 +14,7 @@ $string = sprintf(elgg_echo("river:posted:generic"),$url) . " "; $string .= elgg_echo("{$subtype}:river:annotate") . " getURL()}\">" . $title . " " . friendly_time($object->time_created); if(get_context() != 'riverdashboard'){ - $string .= "
"; + $string .= "
"; if($comment){ $contents = strip_tags($comment);//this is so we don't get large images etc in the activity river if(strlen($contents) > 200) diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index c747120be..ebcae0f97 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -6,44 +6,41 @@ $owner = get_user($vars['annotation']->owner_guid); ?> -
- +
$owner, - 'size' => 'small' - ) - ); + 'size' => 'tiny' + )); ?>
+
canEdit()) { - - ?> - - $vars['url'] . "action/comments/delete?annotation_id=" . $vars['annotation']->id, - 'text' => elgg_echo('delete'), - 'confirm' => elgg_echo('deleteconfirm'), - )); - - ?> - - - canEdit()) { + ?> + + $vars['url'] . "action/comments/delete?annotation_id=" . $vars['annotation']->id, + 'text' => elgg_echo('delete'), + 'confirm' => elgg_echo('deleteconfirm') + )); + ?> + +

- name; ?> time_created); ?> + name; ?> + + time_created); ?> +

-
$vars['annotation']->value)); ?>
-
-
\ No newline at end of file +
+ $vars['annotation']->value)); ?> +
+
+
\ No newline at end of file diff --git a/views/default/annotation/latest_comments.php b/views/default/annotation/latest_comments.php index 85ddfab7b..6ab7163ed 100644 --- a/views/default/annotation/latest_comments.php +++ b/views/default/annotation/latest_comments.php @@ -5,8 +5,6 @@ if($vars['comments']){ global $CONFIG; - - echo ""; } \ No newline at end of file diff --git a/views/default/css.php b/views/default/css.php index 61b736af6..f7ed1c2db 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -21,10 +21,11 @@ ELGG TABBED NAVIGATION re-usable tabbed navigation LOGIN / REGISTER login box, register, and lost password page styles CONTENT HEADER + DEFAULT COMMENTS ENTITY LISTINGS elgg's default entity listings USER SETTINGS & ADMIN AREA styles for user settings and default admin area GENERAL FORM ELEMENTS default styles for all elgg input/form elements - + FRIENDS PICKER */ @@ -642,7 +643,7 @@ h2 { line-height:1.2em; color:#bababa; position: relative; - top:-8px; + top:-6px; left:0; } #breadcrumbs a { @@ -914,6 +915,53 @@ select.styled .select_option { } +/* *************************************** + DEFAULT COMMENTS +**************************************** */ +.generic_comment { + border-bottom:1px dotted #cccccc; + clear:both; + display:block; + margin:0; + padding:5px 0 7px; + position:relative; +} +.generic_comment:first-child { + border-top:1px dotted #cccccc; +} +.generic_comment_icon { + float:left; + margin-left:3px; + margin-top:3px; +} +.generic_comment_icon img { + width: auto; +} +.generic_comment_details { + float:left; + margin-left:7px; + min-height:28px; + width:693px; +} +.generic_comment_details p { + margin:0; +} +.generic_comment_owner { + font-size: 1.1em; + line-height:1.2em; + color:#666666; +} +.generic_comment_owner a { + color:#0054A7; +} +.generic_comment_owner .entity_subtext { + color:#666666; + font-size: 90%; +} +.generic_comment_body { + margin:3px 0 5px 0; +} + /* *************************************** DEFAULT ENTITY LISTINGS @@ -997,12 +1045,6 @@ select.styled .select_option { .admin_settings { margin-bottom:20px; } -/* -.user_settings p, -.admin_settings p { - margin-bottom:6px; -} -*/ .user_settings h3, .admin_settings h3 { background:#e4e4e4; @@ -1312,7 +1354,7 @@ a.action_button:focus { /* *************************************** - FRIENDS PICKER SLIDER + FRIENDS PICKER *************************************** */ .friends_picker_container h3 { font-size:4em !important; @@ -1340,11 +1382,6 @@ a.action_button:focus { padding:0; width: 730px; height: auto; -/* - background: #dedede; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; -*/ } .friendspicker_savebuttons { background: white; -- cgit v1.2.3