Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* General changes:

  New look, based on the new mono website and planet gnome
  Moved files around to make things cleaner
  Added additional images, including hackergotchis

* AUTHORS: Added my name
* worker/monologue-worker.cs: Added support for IRC nicknames and
  hackergotchies.
* worker/default.tpl: Updated for new look
* worker/bloggers.xml: Added many irc nicknames and a few
  hackergotchies
* www/js/collapse.js: New file, some javascript code to
  expand/collapse posts.


svn path=/trunk/monologue/; revision=49852
  • Loading branch information...
commit f12a4368c99039423a2d5a631c0fe57bee9d5217 1 parent b2a3ced
@codebutler codebutler authored
Showing with 415 additions and 93 deletions.
  1. +1 −0  AUTHORS
  2. +16 −0 ChangeLog
  3. +1 −1  worker/Makefile
  4. +40 −40 worker/bloggers.xml
  5. +69 −22 worker/default.tpl
  6. +34 −23 worker/monologue-worker.cs
  7. +69 −7 www/{ → css}/monologue.css
  8. +117 −0 www/css/planet.css
  9. BIN  www/images/bubble/bubble-bottom-left.png
  10. BIN  www/images/bubble/bubble-bottom-right.png
  11. BIN  www/images/bubble/bubble-bottom.png
  12. BIN  www/images/bubble/bubble-left.png
  13. BIN  www/images/bubble/bubble-nipple.png
  14. BIN  www/images/bubble/bubble-right.png
  15. BIN  www/images/bubble/bubble-top-left.png
  16. BIN  www/images/bubble/bubble-top-right.png
  17. BIN  www/images/bubble/bubble-top.png
  18. BIN  www/images/feed.png
  19. BIN  www/images/heads/abock.png
  20. BIN  www/images/heads/danw.png
  21. BIN  www/images/heads/edd.png
  22. BIN  www/images/heads/miguel.png
  23. BIN  www/images/heads/none.png
  24. BIN  www/images/mono-bg.png
  25. BIN  www/images/mono-powered-big.png
  26. BIN  www/images/rss.gif
  27. BIN  www/images/rss2.png
  28. BIN  www/images/xml.gif
  29. +68 −0 www/js/collapse.js
  30. 0  www/{ → js}/prettyprint.js
View
1  AUTHORS
@@ -1,2 +1,3 @@
Ben Maurer <bmaurer@users.sf.net>
Miguel de Icaza <miguel@ximian.com>
+Eric Butler <eric@extremeboredom.net>
View
16 ChangeLog
@@ -1,3 +1,19 @@
+2005-09-09 Eric Butler <eric@extremeboredom.net>
+
+ * General changes:
+ New look, based on the new mono website and planet gnome
+ Moved files around to make things cleaner
+ Added additional images, including hackergotchis
+
+ * AUTHORS: Added my name
+ * worker/monologue-worker.cs: Added support for IRC nicknames and
+ hackergotchies.
+ * worker/default.tpl: Updated for new look
+ * worker/bloggers.xml: Added many irc nicknames and a few
+ hackergotchies
+ * www/js/collapse.js: New file, some javascript code to
+ expand/collapse posts.
+
2005-07-10 Jb Evain <jbevain@gmail.com>
* worker/blogger.xml: update my feed
View
2  worker/Makefile
@@ -1,5 +1,5 @@
MCS=mcs /debug
-MONO=mono
+MONO=mono --debug
monologue-worker.exe : monologue-worker.cs template4dotnet.cs
$(MCS) /r:RSS.NET.dll /r:ICSharpCode.SharpZipLib.dll /out:$@ $^
View
80 worker/bloggers.xml
@@ -1,66 +1,66 @@
<BloggerCollection>
<Blogger Name="C&eacute;sar L&oacute;pez Natar&eacute;n" RssUrl="http://primates.ximian.com/~cnataren/blog/cesar.rss2" />
- <Blogger Name="Miguel de Icaza" RssUrl="http://tirania.org/blog/miguel.rss2" />
- <Blogger Name="Jackson Harper" RssUrl="http://primates.ximian.com/~jackson/blog/jackson.rss2" />
- <Blogger Name="Sebastien Pouliot" RssUrl="http://pages.infinit.net/ctech/poupou.rss" />
- <Blogger Name="Mike Kestner" RssUrl="http://primates.ximian.com/~mkestner/blog/index.rss2" />
- <Blogger Name="Lluis Sanchez " RssUrl="http://primates.ximian.com/~lluis/blog/index.rss2" />
- <Blogger Name="Duncan Mak " RssUrl="http://www.a-chinaman.com/category/monologue/feed" />
- <Blogger Name="Martin Baulig" RssUrl="http://primates.ximian.com/~martin/blog/martin.rss2" />
- <Blogger Name="Martin Willemoes Hansen" RssUrl="http://mwh.sysrq.dk/blog/martin.rss2" />
- <Blogger Name="Todd Berman" RssUrl="http://off.net/~tberman/diary/index.xml" />
+ <Blogger Name="Miguel de Icaza" RssUrl="http://tirania.org/blog/miguel.rss2" Head="miguel.png" IrcNick="miguel"/>
+ <Blogger Name="Jackson Harper" RssUrl="http://primates.ximian.com/~jackson/blog/jackson.rss2" IrcNick="jackson" Head="Image:Jackson.png" />
+ <Blogger Name="Sebastien Pouliot" RssUrl="http://pages.infinit.net/ctech/poupou.rss" IrcNick="spouliot" Head="Spouliot.png"/>
+ <Blogger Name="Mike Kestner" RssUrl="http://primates.ximian.com/~mkestner/blog/index.rss2" IrcNick="mkestner"/>
+ <Blogger Name="Lluis Sanchez " RssUrl="http://primates.ximian.com/~lluis/blog/index.rss2" IrcNick="lluis" Head="Lluis.png"/>
+ <Blogger Name="Duncan Mak " RssUrl="http://www.a-chinaman.com/category/monologue/feed" IrcNick="duncan" Head="Duncan.png"/>
+ <Blogger Name="Martin Baulig" RssUrl="http://primates.ximian.com/~martin/blog/martin.rss2" IrcNick="baulig" Head="Martin.png" />
+ <Blogger Name="Martin Willemoes Hansen" RssUrl="http://mwh.sysrq.dk/blog/martin.rss2" Head="Mwh.png" />
+ <Blogger Name="Todd Berman" RssUrl="http://off.net/~tberman/diary/index.xml" IrcNick="tberman" Head="Tberman.png" />
<Blogger Name="Mono:" RssUrl="http://www.mono-project.com/news/index.rss2" />
- <Blogger Name="Gonzalo Paniagua Javier" RssUrl="http://primates.ximian.com/~gonzalo/mono/blog/gonzalo.rss2" />
- <Blogger Name="Daniel Morgan" RssUrl="http://www.mfconsulting.com/danmorg/monologue-index.xml"/>
- <Blogger Name="Atsushi Enomoto" RssUrl="http://monkey.workarea.jp/lb/index.rss2"/>
+ <Blogger Name="Gonzalo Paniagua Javier" RssUrl="http://primates.ximian.com/~gonzalo/mono/blog/gonzalo.rss2" IrcNick="gonzalo" Head="Image:Gonzalo.png" />
+ <Blogger Name="Daniel Morgan" RssUrl="http://www.mfconsulting.com/danmorg/monologue-index.xml" IrcNick="danmorg"/>
+ <Blogger Name="Atsushi Enomoto" RssUrl="http://monkey.workarea.jp/lb/index.rss2" IrcNick="eno"/>
<Blogger Name="Erik Dasque" RssUrl="http://primates.ximian.com/~edasque/erik.rss2"/>
- <Blogger Name="Jordi Mas" RssUrl="http://primates.ximian.com/~jordi/blog/index.rdf"/>
+ <Blogger Name="Jordi Mas" RssUrl="http://primates.ximian.com/~jordi/blog/index.rdf" Head="Jordi.png" />
<Blogger Name="Paolo Molaro" RssUrl="http://www.advogato.org/person/lupus/rss.xml"/>
- <Blogger Name="Larry Ewing" RssUrl="http://primates.ximian.com/~lewing/blog/index.rdf"/>
- <Blogger Name="John Luke" RssUrl="http://advogato.org/person/jluke/rss.xml"/>
- <Blogger Name="Vladimir Vukicevic" RssUrl="http://blog.vlad1.com/feed/"/>
- <Blogger Name="Edd Dumbill" RssUrl="http://usefulinc.com/edd/blog/rss91"/>
+ <Blogger Name="Larry Ewing" RssUrl="http://primates.ximian.com/~lewing/blog/index.rdf" IrcNick="lewing"/>
+ <Blogger Name="John Luke" RssUrl="http://advogato.org/person/jluke/rss.xml" IrcNick="jluke"/>
+ <Blogger Name="Vladimir Vukicevic" RssUrl="http://blog.vlad1.com/feed/" IrcNick="vlad"/>
+ <Blogger Name="Edd Dumbill" RssUrl="http://usefulinc.com/edd/blog/rss91" Head="edd.png" IrcNick="edd" />
<Blogger Name="Massimiliano Mantione" RssUrl="http://primates.ximian.com/~massi/blog/index.rdf"/>
<Blogger Name="Kristian" RssUrl="http://www.livejournal.com/~inverted_tree/data/rss"/>
<Blogger Name="Nemerle" RssUrl="http://nemerle.org/blog/nemerle.rss2"/>
- <Blogger Name="Jon Trowbridge" RssUrl="http://blog.trowbridge.org/wp-rss2.php"/>
- <Blogger Name="Paco Martinez" RssUrl="http://www.mfconsulting.com/blog/index.rdf"/>
+ <Blogger Name="Jon Trowbridge" RssUrl="http://blog.trowbridge.org/wp-rss2.php"/>
+ <Blogger Name="Paco Martinez" RssUrl="http://www.mfconsulting.com/blog/index.rdf" IrcNick="paco"/>
<Blogger Name="Jambunathan K" RssUrl="http://feeds.feedburner.com/DiaryOfAVBDotNetCompilerDeveloper"/>
<Blogger Name="Sanjay Gupta" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/596"/>
<Blogger Name="Umadevi S" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/599"/>
<Blogger Name="Ravindra Kumar" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/601"/>
- <Blogger Name="Sureshkumar" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/677"/>
+ <Blogger Name="Sureshkumar" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/677" IrcNick="suresh"/>
<Blogger Name="Geoff Norton" RssUrl="http://blog.sublimeintervention.com/rss.xml"/>
<Blogger Name="Alex Graveley" RssUrl="http://www.beatniksoftware.com/blog/wp-rss2.php"/>
- <Blogger Name="Chris Toshok" RssUrl="http://squeedlyspooch.com/blog/geek-index.xml"/>
- <Blogger Name="Joseph Hill" RssUrl="http://www.beyondfocus.com/WeblogX/BlogXBrowsing.asmx/GetRss?"/>
- <Blogger Name="Jb Evain" RssUrl="http://evain.net/ruby/userland.rbx"/>
- <Blogger Name="Zac Bowling" RssUrl="http://zacbowling.com/feed/rss2/"/>
+ <Blogger Name="Chris Toshok" RssUrl="http://squeedlyspooch.com/blog/geek-index.xml" IrcNick="toshok"/>
+ <Blogger Name="Joseph Hill" RssUrl="http://www.beyondfocus.com/WeblogX/BlogXBrowsing.asmx/GetRss?" IrcNick="jhill"/>
+ <Blogger Name="Jb Evain" RssUrl="http://evain.net/ruby/userland.rbx" Head="Image:Jbthumb2.png"/>
+ <Blogger Name="Zac Bowling" RssUrl="http://zacbowling.com/feed/rss2/" IrcNick="zbowling" />
<Blogger Name="Mark Crichton" RssUrl="http://www.fishysnax.com/code.xml"/>
<Blogger Name="MWF Weblog" RssUrl="http://svn.myrealbox.com/blog/rss.xml"/>
- <Blogger Name="Christian Hergert" RssUrl="http://blogs.dronelabs.com/chris/index.xml" />
- <Blogger Name="Jeroen Frijters" RssUrl="http://weblog.ikvm.net/SyndicationService.asmx/GetRss"/>
- <Blogger Name="Eric Butler" RssUrl="http://www.extremeboredom.net/rss.php"/>
+ <Blogger Name="Christian Hergert" RssUrl="http://blogs.dronelabs.com/chris/index.xml" IrcNick="chrish01" />
+ <Blogger Name="Jeroen Frijters" RssUrl="http://weblog.ikvm.net/SyndicationService.asmx/GetRss" IrcNick="jeroen"/>
+ <Blogger Name="Eric Butler" RssUrl="http://eric.extremeboredom.net/rss.xml" IrcNick="FireRabbit"/>
<Blogger Name="Joe Audette" RssUrl="http://www.joeaudette.com/RSS.aspx?pageid=101&amp;mid=104"/>
<Blogger Name="Michael Giagnocavo" RssUrl="http://www.atrevido.net/blog/SyndicationService.asmx/GetRss"/>
- <Blogger Name="Dan Winship" RssUrl="http://mysterion.org/~danw/blog/index.rss"/>
+ <Blogger Name="Dan Winship" RssUrl="http://mysterion.org/~danw/blog/index.rss" IrcNick="danw" Head="danw.png" />
<Blogger Name="Carlos Alberto Cortez" RssUrl="http://feeds.feedburner.com/carlos"/>
<Blogger Name="Joshua Tauberer" RssUrl="http://taubz.for.net/blog/rss.xpd"/>
- <Blogger Name="Peter Johanson" RssUrl="http://www.tenslashsix.com/wp-feed.php?cat=5"/>
- <Blogger Name="Aaron Bockover" RssUrl="http://aaronbock.net/journal/rss.php/monologue"/>
+ <Blogger Name="Peter Johanson" RssUrl="http://www.tenslashsix.com/wp-feed.php?cat=5" IrcNick="latexer"/>
+ <Blogger Name="Aaron Bockover" RssUrl="http://aaronbock.net/journal/rss.php/monologue" IrcNick="abock" Head="abock.png"/>
<Blogger Name="Rafi Mizrahi" RssUrl="http://feeds.feedburner.com/RafaelMizrahisWebLog" />
- <Blogger Name="Hisham Mardam Bey" RssUrl="http://hisham.cc/rss.php"/>
- <Blogger Name="Michal Dominik" RssUrl="http://diva.mdk.org.pl/?feed=rss2"/>
- <Blogger Name="Mario Sopena" RssUrl="http://feeds.feedburner.com/marioRss" />
- <Blogger Name="Jeyasankar Kottalam" RssUrl="http://eggminus.com/blogger-rss.php?url=http://gcc-cil.blogspot.com"/>
- <Blogger Name="Pedro Martinez" RssUrl="http://pedromj.dyndns.org/blog/BlogXBrowsing.asmx/GetRss?"/>
- <Blogger Name="Brandon Hale" RssUrl="http://tseng.ath.cx/log/?feed=rss2"/>
- <Blogger Name="Raja R Harinath" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/598"/>
+ <Blogger Name="Hisham Mardam Bey" RssUrl="http://hisham.cc/rss.php" IrcNick="hisham"/>
+ <Blogger Name="Michal Dominik" RssUrl="http://diva.mdk.org.pl/?feed=rss2" IrcNick="MDK"/>
+ <Blogger Name="Mario Sopena" RssUrl="http://feeds.feedburner.com/marioRss" IrcNick="mario"/>
+ <Blogger Name="Jeyasankar Kottalam" RssUrl="http://eggminus.com/blogger-rss.php?url=http://gcc-cil.blogspot.com" IrcNick="jey"/>
+ <Blogger Name="Pedro Martinez" RssUrl="http://pedromj.dyndns.org/blog/BlogXBrowsing.asmx/GetRss?" Head="Pedro.png"/>
+ <Blogger Name="Brandon Hale" RssUrl="http://tseng.ath.cx/log/?feed=rss2" IrcNick="tseng"/>
+ <Blogger Name="Raja R Harinath" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/598" Head="Harinath.jpg"/>
<Blogger Name="Mirco Bauer" RssUrl="http://www.meebey.net/jaws/data/xml/blog.Mono.rss" />
<Blogger Name="Michael Hutchinson" RssUrl="http://compsoc.dur.ac.uk/~mjh/mono-feed"/>
<Blogger Name="Blago" RssUrl="http://www.dachev.com/blog/index.rdf"/>
- <Blogger Name="Jeff Tickle" RssUrl="http://blog.jefftickle.com/category/pub/rss2" />
- <Blogger Name="Marek Sieradzki" RssUrl="http://www.planetsoc.com/blog/32/feed"/>
- <Blogger Name="Ben Maurer" RssUrl="http://feeds.feedburner.com/bmaurer" />
+ <Blogger Name="Jeff Tickle" RssUrl="http://blog.jefftickle.com/category/pub/rss2" IrcNick="jtickle"/>
+ <Blogger Name="Marek Sieradzki" RssUrl="http://www.planetsoc.com/blog/32/feed" />
+ <Blogger Name="Ben Maurer" RssUrl="http://feeds.feedburner.com/bmaurer" IrcNick="BenM" />
<Blogger Name="Ritvik Mayank" RssUrl="http://feeds.feedburner.com/mritvik" />
</BloggerCollection>
View
91 worker/default.tpl
@@ -1,41 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
<html>
<head>
- <title>Monologue::</title>
- <link rel='stylesheet' href='monologue.css' type='text/css' />
+ <title>Monologue - Voices of the Mono Project</title>
+ <link rel='stylesheet' href='css/monologue.css' type='text/css' />
+ <link rel='stylesheet' href='css/planet.css' type='text/css' />
<link rel='alternate' title='Monologue' href='index.rss' type='application/rss+xml' />
- <script src='prettyprint.js' type='text/javascript'>
+ <!--[if IE]>
+ <link rel='stylesheet' href='css/ie.css' type='text/css' />
+ <![endif]-->
+ <script src='js/prettyprint.js' type='text/javascript'>
</script>
+ <script src='js/collapse.js' type='text/javascript'>
+ </script>
</head>
<body onload='paintColors();'>
- <h1>Monologue</h1>
+ <div id="header">
+ <div id="top-right-links"><a href="http://www.mono-project.com/">Return to mono-project.com &raquo;</a></div>
+ <h1>Monologue</h1>
+ </div>
+ <div id='blogs'>
+ <!-- @@BLOG_DAY@@ -->
+ <h2 class="date">@@DAY_DATE@@</h2>
+ <!-- @@DAY_ENTRY@@ -->
+ <div class="entry">
+ <div class="person-info">
+ <a href="@@ENTRY_PERSON_URL@@">
+ <img class="face" src="images/heads/@@ENTRY_PERSON_HEAD@@" alt=""/>
+ <br>
+ <br>
+ @@ENTRY_PERSON@@
+ @@ENTRY_PERSON_IRCNICK@@
+ </a>
+ </div>
+ <div class="post">
+ <div class="post2">
+ <div class="post-header">
+ <div class="expander"><input class="collapse-button" type="button" onClick="Collapse(this);" value="(Collapse)"></div>
+ <h4 class="post-title"><a href='@@ENTRY_LINK@@'>@@ENTRY_TITLE@@</a></h4>
+ </div>
+ <div class="post-contents">
+ @@ENTRY_HTML@@
+ </div>
+ <div class="post-footer">
+ <p><a href="@@ENTRY_LINK@@">Posted at @@ENTRY_DATE@@</a></p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- @@DAY_ENTRY@@ -->
+ <!-- @@BLOG_DAY@@ -->
+ </div>
+
<div id='bloggers'>
- <h2>RSS</h2>
- <a href="index.rss"><img src="xml.gif"></a> Monologue.
+
+ <h2>Monologue</h2>
+ <p>Monologue is a window into the world, work, and lives of the community members and developers that make up the <a href="http://mono-project.com/">Mono Project</a>, which is a free cross-platform development environment used primarily on Linux.</p>
+ <p>If you would rather follow Monologue using a newsreader, we provide the following feed:</p>
+ <p><a href="index.rss"><img src="images/xml.gif"></a> RSS 2.0 Feed</p>
<h2>Bloggers</h2>
<ul>
<!-- @@BLOGGER@@ -->
- <li><a href='@@BLOGGER_URL@@'>@@BLOGGER_NAME@@</a> <a href='@@BLOGGER_RSSURL@@'>(rss)</a></li>
- <!-- @@BLOGGER@@ -->
+ <li>
+ <div>
+ <img class="head" src="images/heads/@@BLOGGER_HEAD@@">
+ </div>
+ <a href='@@BLOGGER_URL@@'>@@BLOGGER_NAME@@</a>
+ <div>
+ <a href='@@BLOGGER_RSSURL@@'><img src="images/feed.png"></a>
+ <br>
+ @@BLOGGER_IRCNICK@@
+ <br>
+ </div>
+ </li><!-- @@BLOGGER@@ -->
</ul>
- <a href="http://www.go-mono.com"><img src="mono-powered-big.png" /></a>
+ <a href="http://www.go-mono.com"><img src="images/mono-powered-big.png" /></a>
</div>
-
- <div id='blogs'>
- <!-- @@BLOG_DAY@@ -->
- <h2>@@DAY_DATE@@</h2>
+
+
- <!-- @@DAY_ENTRY@@ -->
- <h3><a href='@@ENTRY_LINK@@'>@@ENTRY_TITLE@@</a></h3>
- <div class='blogentry'>
- @@ENTRY_HTML@@
- <p>Posted at @@ENTRY_DATE@@</p>
- </div>
- <!-- @@DAY_ENTRY@@ -->
- <!-- @@BLOG_DAY@@ -->
- </div>
+
</body>
</html>
View
57 worker/monologue-worker.cs
@@ -121,8 +121,6 @@ static void RunOnce ()
if (b.Channel == null) continue;
foreach (RssItem i in b.Channel.Items) {
if (i.PubDate >= minPubDate) {
- string realTitle = b.Name + ": " + i.Title;
- i.Title = realTitle;
stories.Add (i);
}
}
@@ -161,6 +159,17 @@ static void Render ()
tpl.setField ("BLOGGER_URL", b.HtmlUrl.ToString ());
tpl.setField ("BLOGGER_NAME", b.Name);
+
+ if (b.Head != null)
+ tpl.setField ("BLOGGER_HEAD", b.Head);
+ else
+ tpl.setField ("BLOGGER_HEAD", "none.png");
+
+ if (b.IrcNick != null)
+ tpl.setField ("BLOGGER_IRCNICK", "(" + b.IrcNick + ")");
+ else
+ tpl.setField ("BLOGGER_IRCNICK", "");
+
tpl.setField ("BLOGGER_RSSURL", b.RssUrl);
tpl.appendSection ();
@@ -175,24 +184,26 @@ static void Render ()
tpl.selectSection ("DAY_ENTRY");
foreach (RssItem itm in day) {
tpl.setField ("ENTRY_LINK", itm.Link.ToString ());
- /*
+
Blogger bl = bloggers [itm.Author];
if (bl != null) {
tpl.setField ("ENTRY_PERSON", bl.Name);
+
+ if (bl.IrcNick != null)
+ tpl.setField ("ENTRY_PERSON_IRCNICK", "<br/>(" + bl.IrcNick + ")");
+ else
+ tpl.setField ("ENTRY_PERSON_IRCNICK", "");
+
+ if (bl.Head != null)
+ tpl.setField ("ENTRY_PERSON_HEAD", bl.Head);
+ else
+ tpl.setField ("ENTRY_PERSON_HEAD", "none.png");
+
+ tpl.setField ("ENTRY_PERSON_URL", bl.HtmlUrl.ToString());
} else {
- Settings.Log ("'{0}' have no author", itm.Title);
-
- int colon = itm.Title.IndexOf (":");
- if (colon != -1) {
- string author = itm.Title.Substring (0, colon);
- bl = bloggers [author];
- if (bl != null) {
- Settings.Log ("Using {0}", author);
- tpl.setField ("ENTRY_PERSON", author);
- }
- }
+ throw new Exception ("No blogger for " + itm.Author + ".");
}
- */
+
tpl.setField ("ENTRY_TITLE", itm.Title);
tpl.setField ("ENTRY_HTML", itm.Description);
tpl.setField ("ENTRY_DATE", itm.PubDate.ToString ("h:mm tt"));
@@ -299,10 +310,15 @@ public enum UpdateStatus {
public class Blogger {
[XmlAttribute] public string Name;
[XmlAttribute] public string RssUrl;
+ [XmlAttribute] public string IrcNick;
+ [XmlAttribute] public string Head;
+
[XmlIgnore]
public string ID {
// Must look like an email to make rss happy
- get { return XmlConvert.EncodeLocalName (Name) + "@" + XmlConvert.EncodeLocalName (RssUrl); }
+ get {
+ return XmlConvert.EncodeLocalName (Name) + "@" + XmlConvert.EncodeLocalName ("monologue.go-mono.com");
+ }
}
RssFeed feed;
@@ -334,13 +350,7 @@ public class Blogger {
public string Author {
get {
- string author;
- if (Name.IndexOf (' ') == -1)
- author = Name;
- else
- author = Name.Substring (0, Name.IndexOf (' '));
-
- return author + "@monologue.go-mono.com";
+ return XmlConvert.EncodeLocalName (Name) + "@" + XmlConvert.EncodeLocalName ("monologue.go-mono.com");
}
}
@@ -349,6 +359,7 @@ public void UpdateFeed ()
if (feed == null)
return;
+ // TODO: Do we still need this?
if (feed.Channels.Count > 0)
foreach (RssItem i in feed.Channels [0].Items)
i.Author = Author;
View
76 www/monologue.css → www/css/monologue.css
@@ -1,11 +1,27 @@
+body * {
+ font-family: Verdana, Sans-Serif;
+ font-size: small;
+}
+
+#header {
+ background: #fff url(../images/mono-bg.png) no-repeat bottom left;
+ height: 100px;
+}
+
h1 {
- color: #efefef;
+ padding: 20px;
+ color: black;
font-size: 14pt;
font-family: "Trebuchet MS", sans-serif;
border: 0;
margin: 0;
- padding: 1em;
- background: #666666;
+}
+#top-right-links {
+ padding: 20px;
+ float: right;
+}
+#top-right-links a {
+ color: #666;
}
h2, h3, h4, h5, h6 {
@@ -36,7 +52,7 @@ blockquote {
body, table {
background-color: #ffffff;
- font-family: Verdana, sans-serif; font-size: 12px;
+ font-family: Verdana, sans-serif;
color: black;
margin: 0;
padding: 0;
@@ -72,11 +88,13 @@ img {
#blogs {
margin-left: 2em;
- margin-right: 140pt;
+ margin-right: 245px;
}
#bloggers {
- float: right;
- width: 120pt;
+ position: absolute;
+ top: 100px;
+ right: 15px;
+ width: 230px;
}
#bloggers h2 {
@@ -85,9 +103,39 @@ img {
}
#bloggers ul {
padding:0;
+ margin:0;
list-style-type:none;
}
+#bloggers ul li {
+ padding: 1px;
+}
+
+#bloggers ul li div img {
+
+}
+
+#bloggers ul li div {
+ display: none;
+}
+
+#bloggers ul li:hover > a {
+ font-weight: bold;
+}
+#bloggers ul li div img.head {
+ float: right;
+ padding: 0px;
+}
+
+#bloggers ul li:hover > div {
+ display: inline;
+}
+
+#bloggers ul li:hover {
+ padding: 0 0 10px 0;
+ background-color: #f0f0f0;
+}
+
.code-xml, .code-csharp, .code-mdb, .code-gaim
{
margin:15px;
@@ -98,3 +146,17 @@ img {
border: solid 1px silver;
line-height:110%;
}
+
+.expander
+{
+ float: right;
+ padding: 20px;
+}
+.expander input
+{
+ border: 0px;
+ background-color: transparent;
+ font-size: x-small;
+ color: #ccc;
+ cursor: pointer;
+}
View
117 www/css/planet.css
@@ -0,0 +1,117 @@
+div.entry {
+ margin-bottom: 2em;
+ margin-right: 1em;
+ clear: both;
+}
+
+div.person-info {
+ float: left;
+ position: relative;
+ left: 4px;
+ margin-top: 25px!important;
+ padding: 0 20px 30px 0;
+ width: 120px;
+ background: url(../images/bubble/bubble-nipple.png) top right no-repeat;
+ text-align: center;
+}
+
+div.person-info a {
+ text-decoration: none;
+ color: #666;
+}
+
+div.post {
+ background: #fff url(../images/bubble/bubble-left.png) left repeat-y;
+ margin-left: 140px;
+}
+
+div.post2 {
+ background: url(../images/bubble/bubble-right.png) right repeat-y;
+}
+
+div.post-contents {
+ padding: 0 0px 0 25px;
+ margin-right: 10px;
+ overflow: hidden;
+ width: 90%;
+}
+
+div.post-contents p {
+ line-height: 140%;
+ margin-top: 1em!important;
+}
+
+div.post-contents blockquote {
+ color: #666;
+ line-height: 150%;
+}
+
+div.post-contents:after {
+ content: "";
+ display: block;
+}
+
+h4.post-title, div.post-title {
+ background: url(../images/bubble/bubble-top-left.png) top left no-repeat;
+ margin: 1em 0 0 0;
+}
+
+h4.post-title a, div.post-title span {
+ display: block;
+ background: url(../images/bubble/bubble-top-right.png) top right no-repeat;
+ padding: 22px 25px 0 25px;
+ font-weight: normal;
+ font-size: 140%;
+ text-decoration: none;
+}
+
+h4.post-title a:hover {
+ text-decoration: underline;
+}
+
+div.post-title span {
+ display: block;
+ height: 20px;
+ font-size: 100%;
+}
+
+div.post-title {
+ display: block;
+}
+
+div.post-header {
+ background: url(../images/bubble/bubble-top.png) top repeat-x;
+}
+
+
+div.post-footer {
+ background: url(../images/bubble/bubble-bottom.png) bottom repeat-x;
+}
+
+div.post-footer p {
+ background: url(../images/bubble/bubble-bottom-left.png) bottom left no-repeat;
+ margin: 0;
+}
+
+div.post-footer p a {
+ display: block;
+ background: url(../images/bubble/bubble-bottom-right.png) bottom right no-repeat;
+ padding: 15px 20px 20px 25px;
+ text-align: right;
+ font-size: 85%;
+ color: #999;
+ text-decoration: none;
+}
+
+div.post-footer p a:hover {
+ color: inherit;
+ text-decoration: underline;
+}
+
+h2.date {
+ color: #5a7ac7;
+ font-weight: normal;
+ font-size: 1.5em;
+ clear: both;
+ border-bottom: 1px solid #E1E6F4;
+}
View
BIN  www/images/bubble/bubble-bottom-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-bottom-right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-bottom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-nipple.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-top-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-top-right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/bubble/bubble-top.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/feed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/heads/abock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/heads/danw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/heads/edd.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/heads/miguel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/heads/none.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/mono-bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/mono-powered-big.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/rss.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/rss2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  www/images/xml.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
68 www/js/collapse.js
@@ -0,0 +1,68 @@
+function Collapse (e)
+{
+ for (var i = 0; i < e.parentNode.parentNode.parentNode.childNodes.length; i++) {
+ var node = e.parentNode.parentNode.parentNode.childNodes [i];
+
+ if (node.className == "post-contents") {
+ if (node.style.display == "none") {
+ node.style.display = "block";
+ e.value = "(Collapse)";
+ } else {
+ node.style.display = "none";
+ e.value = "(Expand)";
+ }
+ return;
+ }
+ }
+}
+
+function ExpandAll ()
+{
+ var entries = document.getElementById ("blogs");
+
+ var result = evaluateXPath (entries, "//html/body/div[@id='blogs']/div[@class='entry']/div[@class='post']/div[@class='post2']/div[@class='post-contents']");
+ var result1 = evaluateXPath (entries, "//html/body/div[@id='blogs']/div[@class='entry']/div[@class='post']/div[@class='post2']/div[@class='post-header']/div[@class='expander']/input");
+
+ for (var i = 0; i < result.length; i++) {
+ var node = result [i];
+
+ node.style.display = 'block';
+ result1[i].value = "(Collapse)";
+ }
+
+ var collapseAllLink = document.getElementById ("collapse-all");
+ collapseAllLink.innerHTML = "If you would like, you can <a href='javascript:CollapseAll()'>collapse all of the posts on this page</a> and view only headlines.";
+}
+function CollapseAll ()
+{
+ var entries = document.getElementById ("blogs");
+
+ var result = evaluateXPath (entries, "//html/body/div[@id='blogs']/div[@class='entry']/div[@class='post']/div[@class='post2']/div[@class='post-contents']");
+ var result1 = evaluateXPath (entries, "//html/body/div[@id='blogs']/div[@class='entry']/div[@class='post']/div[@class='post2']/div[@class='post-header']/div[@class='expander']/input");
+
+ for (var i = 0; i < result.length; i++) {
+ var node = result [i];
+
+ node.style.display = 'none';
+ result1 [i].value = "(Expand)";
+ }
+
+ var collapseAllLink = document.getElementById ("collapse-all");
+ collapseAllLink.innerHTML = "If you would like, you can <a href='javascript:ExpandAll()'>expand all of the posts on this page</a> and view both headlines and the post text.";
+}
+
+// Evaluate an XPath expression aExpression against a given DOM node
+// or Document object (aNode), returning the results as an array
+// thanks wanderingstan at morethanwarm dot mail dot com for the
+// initial work.
+function evaluateXPath(aNode, aExpr) {
+ var xpe = new XPathEvaluator();
+ var nsResolver = xpe.createNSResolver(aNode.ownerDocument == null ?
+ aNode.documentElement : aNode.ownerDocument.documentElement);
+ var result = xpe.evaluate(aExpr, aNode, nsResolver, 0, null);
+ var found = [];
+ while (res = result.iterateNext())
+ found.push(res);
+ return found;
+}
+
View
0  www/prettyprint.js → www/js/prettyprint.js
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.