Commits

Marc Hildmann  committed 1172ef8

added some styles to the Mercurial feed

  • Participants
  • Parent commits 1b3a420

Comments (0)

Files changed (3)

File example-site/dragonfly-framework/plugins-active/dragonfly_basic.lsp

 
 				(set 'contenthtml (lookup 'content entry))
 				(replace "&lt;br/&gt;" contenthtml "<br/>") ; we need to replace some html entities
-				(replace "&#160;" contenthtml "&nbsp;")
+				(replace "&#160;" contenthtml "")
 
 				(println
 					"<span class='atomFeedTitle'><a href='" (lookup '(link @ href) entry) "' rel='nofollow'>"(lookup 'title entry) "</a></span><br/>"
 					"<span class='atomFeedUpdated'>" (date dateseconds 0 "%a %d %b %Y %H:%M:%S") "</span> , <span class='atomFeedAuthor'>" (lookup '(author name) entry) "</span><br/><br/>"
-					contenthtml "<br/>"
-					"<br/>"
+					contenthtml "<br/><br/>"
 				)
 			)
 		)

File example-site/includes/css/screen.css

 		margin: 0;
 		margin-bottom: 20px;
 	}
+	
+/* Mercurial feed styling */
 
+#mercurial_changes p {
+	margin-top:10px;
+	margin-bottom:30px;
+	padding:10px;
+	background:#fff9d8;
+	font-size:10px;
+	color:#000000;
+	border:1px solid #f4e8c7;
+}
+
+#mercurial_changes .atomFeedTitle {
+	font-size:10px;
+}
+
+#mercurial_changes .atomFeedUpdated, .atomFeedAuthor {
+	font-size:10px;
+	font-weight:bold;
+}
 
 /* nice table definitions */
 

File example-site/views/code.html

 			<li><a href="http://code.google.com/p/dragonfly-newlisp/downloads/list" target="_blank">Latest stable version</a></li>
 		</ul>
 
-		<h2>The last changes</h2>
-		<p>
-		<% (read-atom-feed "http://code.google.com/feeds/p/dragonfly-newlisp/hgchanges/basic", 5) %>	
-		</p>
+		<h2>The last five changes</h2>
+		<div id="mercurial_changes">
+			<p>
+			<% (read-atom-feed "http://code.google.com/feeds/p/dragonfly-newlisp/hgchanges/basic", 5) %>	
+			</p>
+		</div>
 
 		
 		<div class="line-dotted"></div>