From: dongsheng <dongsheng>
Date: Mon, 25 May 2009 09:19:27 +0000 (+0000)
Subject: "MDL-18971, fix forum unread post highlighting issue, thanks Eric straw's patch,... 
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=994d4a3be12e57891e85bc1dc128fa0eac15a2cb;p=moodle.git

"MDL-18971, fix forum unread post highlighting issue, thanks Eric straw's patch, merged from 1.9"
---

diff --git a/theme/chameleon/config.php b/theme/chameleon/config.php
index 923ce19253..b917d045e8 100644
--- a/theme/chameleon/config.php
+++ b/theme/chameleon/config.php
@@ -13,7 +13,7 @@ $THEME->sheets = array('user_styles');
 ////////////////////////////////////////////////////////////////////////////////
 
 
-$THEME->standardsheets = array('styles_layout');
+$THEME->standardsheets = array('styles_layout', 'styles_color');
 
 /// This variable can be set to an array containing
 /// filenames from the *STANDARD* theme.  If the 
diff --git a/theme/formal_white/config.php b/theme/formal_white/config.php
index cfc6edbc2c..df72ac4cbf 100644
--- a/theme/formal_white/config.php
+++ b/theme/formal_white/config.php
@@ -12,7 +12,7 @@ $THEME->sheets = array('fw_layout','fw_color','fw_fonts');
 /// stylesheet files you want included in this theme, and in what order
 ////////////////////////////////////////////////////////////////////////////////
 
-$THEME->standardsheets = array('styles_layout');
+$THEME->standardsheets = array('styles_layout', 'styles_color');
 ///$THEME->standardsheets = true;
 
 /// This variable can be set to an array containing
diff --git a/theme/formal_white/fw_color.css b/theme/formal_white/fw_color.css
index a65137ccf5..f85ce50e19 100644
--- a/theme/formal_white/fw_color.css
+++ b/theme/formal_white/fw_color.css
@@ -398,7 +398,7 @@ table.minicalendar tr td.weekend {
 }
 
 #mod-forum-discuss .forumpost.unread .content {
-  border-color: #C6BDA8; 
+/*  border-color: #C6BDA8; */
 } 
 
 #mod-forum-discuss .forumthread .unread {
diff --git a/theme/metal/colors.css b/theme/metal/colors.css
index 6c1cfb7cd6..7a7f245271 100755
--- a/theme/metal/colors.css
+++ b/theme/metal/colors.css
@@ -590,7 +590,7 @@ table.message_search_results td {
 
 #mod-forum-discuss .forumpost.unread .content {
   border-width:3px;
-  border-color: #FFD991; 
+/*  border-color: #FFD991; */ 
 } 
 
 #mod-forum-discuss .forumthread .unread {
diff --git a/theme/oceanblue/styles_color.css b/theme/oceanblue/styles_color.css
index e021942b15..3d46e07d49 100644
--- a/theme/oceanblue/styles_color.css
+++ b/theme/oceanblue/styles_color.css
@@ -862,17 +862,34 @@ table.message_search_results td {
   background: none;
 }
 
+/** inside border of unread posts in nested format in
+ * mod/forum/discuss.php 
+ **/
 #mod-forum-discuss .forumpost.unread .content {
-  border-color: #FFD991;
-}
+  border-width:2px;
+  border-color: #0000FF;
+} 
 
 #mod-forum-discuss .forumthread .unread {
 }
+/** headers of unread posts in threaded format in
+ * mod/forum/discuss.php 
+ **/
+#mod-forum-discuss .forumthread.unread {
+  background: #FFFF6B; 
+}
 
 #mod-forum-index .unread {
 }
 
 
+/** unread column background on
+ * mod/forum/view.php 
+ **/
+#mod-forum-view .unread{
+	background: #FFFF6B;
+}
+
 /***
  *** Modules: Glossary
  ***/
diff --git a/theme/orangewhite/config.php b/theme/orangewhite/config.php
index d133053741..d63534763d 100644
--- a/theme/orangewhite/config.php
+++ b/theme/orangewhite/config.php
@@ -13,7 +13,7 @@ $THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_
 ////////////////////////////////////////////////////////////////////////////////
 
 
-$THEME->standardsheets = array('styles_layout');
+$THEME->standardsheets = array('styles_layout', 'styles_color');
 
 /// This variable can be set to an array containing
 /// filenames from the *STANDARD* theme.  If the 
diff --git a/theme/orangewhite/styles_color.css b/theme/orangewhite/styles_color.css
index 47ac6cd722..7d80e4684e 100644
--- a/theme/orangewhite/styles_color.css
+++ b/theme/orangewhite/styles_color.css
@@ -578,7 +578,7 @@ table.message_search_results td {
   background:none
 }
 #mod-forum-discuss .forumpost.unread .content {
-  border-color:#FFD991
+/*  border-color:#FFD991 */
 }
 #mod-forum-discuss .forumthread .unread {
 }
diff --git a/theme/orangewhitepda/config.php b/theme/orangewhitepda/config.php
index ef3afa19f8..2a7a0567d7 100644
--- a/theme/orangewhitepda/config.php
+++ b/theme/orangewhitepda/config.php
@@ -13,7 +13,7 @@ $THEME->sheets = array('styles_pda');
 ////////////////////////////////////////////////////////////////////////////////
 
 
-$THEME->standardsheets = array('styles_layout');
+$THEME->standardsheets = array('styles_layout', 'styles_color');
 
 /// This variable can be set to an array containing
 /// filenames from the *STANDARD* theme.  If the 
diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css
index 744e0ec6c9..e1dcbff7e8 100644
--- a/theme/standard/styles_color.css
+++ b/theme/standard/styles_color.css
@@ -728,6 +728,14 @@ body#course-user .section {
   background-color: #fdfdfd;
 }
 
+/**
+ * unread count background on
+ * course/view.php 
+ **/
+#course-view .unread{
+	background: #9EBEFF; 
+}
+
 
 /***
  *** Doc
@@ -936,59 +944,106 @@ table.message_search_results td {
  *** Modules: Forum
  ***/
 
+/**
+ * Patch MDL-18971 version 3 puts the forum classes
+ * in page sequence. Also added one course class (above)
+ * for course/view.php 
+ **/
+
+/** The location of these classes is unknown
+ * Commented out with patch MDL-18971 version 3
+ **/
+/*.sideblock .post .head {
+  color:#555555; 
+}*/
+
+/** Unread Posts count background on
+ * mod/forum/index.php
+ **/
+#mod-forum-index .unread {
+	background: #9EBEFF;
+}
+
+/** wire frame around cells in 
+ * mod/forum/view.php 
+ **/
+.forumheaderlist td {
+  border-color: #FFFFFF;
+}
+
+/** Discussion column background in 
+ * mod/forum/view.php 
+ * The inner class is actually "topic starter"
+ **/
+.forumheaderlist .discussion .starter {
+  background:#DDDDDD;
+}
+
+/** unread column background on
+ * mod/forum/view.php 
+ **/
+#mod-forum-view .unread{
+	background: #9EBEFF;
+}
+
+/** border around posts in 
+ * mod/forum/view.php (forumheaderlist) and 
+ * mod/forum/discuss.php (forumpost)
+ **/
 .forumheaderlist,
 .forumpost {
   border-color:#DDDDDD;
 }
 
+/** post body color in 
+ * mod/forum/discuss.php 
+ **/
 .forumpost .content {
   background: #FFFFFF;
 }
 
+/** left photo section of each post in 
+ * mod/forum/discuss.php 
+ **/
 .forumpost .left {
   background:#EEEEEE;
 }
 
+/** line between header and post body in 
+ * mod/forum/discuss.php 
+ **/
 .forumpost .topic {
   border-bottom-color: #EEEEEE;
 }
 
+/** header of the first post in 
+ * mod/forum/discuss.php 
+ **/
 .forumpost .starter {
   background:#DDDDDD;
 }
 
-.forumheaderlist .discussion .starter {
-  background:#DDDDDD;
-}
-
-.forumheaderlist td {
-  border-color: #FFFFFF;
-}
-
-.sideblock .post .head {
-  color:#555555;
-}
-
+/** header of reply posts and
+ * lower corners of all posts in 
+ * mod/forum/discuss.php 
+ **/
 #mod-forum-discuss .forumpost {
   background: none;
 }
 
-/* for unread colum in mod/forum/view.php */
-#forumheaderlist .unread {
-  border-bottom: 1px solid #FFCB44;
+/** inside border of unread posts in nested format in
+ * mod/forum/discuss.php 
+ **/
+#mod-forum-discuss .forumpost.unread .content {
+  border-width:2px;
+  border-color: #0046C7; 
 }
 
-/* for mod/forum/discuss.php
- * will highlight the table header
- **/ 
-#mod-forum-discuss .unread {
-  background: #FFD991;
-}
-
-/* for unread colum in mod/forum/index.php
- **/ 
-#mod-forum-index .unread {
-  background: #FFD991;
+/** headers of unread posts in threaded format in
+ * mod/forum/discuss.php 
+ **/
+#mod-forum-discuss .forumthread.unread {
+  background: #9EBEFF; 
 }