summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-12-21 20:55:42 +0100
committerfranck cuny <franck@lumberjaph.net>2009-12-21 20:55:42 +0100
commitb6d11a1bc1136a252ed06ed4a7f876e8a7fc20f2 (patch)
treeea4f7a91a16f7c4fa484ecd4c2303779e3a47a32
parentremove services (diff)
downloadlifestream-b6d11a1bc1136a252ed06ed4a7f876e8a7fc20f2.tar.gz
small update
-rw-r--r--.gitignore2
-rw-r--r--lifestream.yaml37
-rw-r--r--templates/lifestream.html88
3 files changed, 95 insertions, 32 deletions
diff --git a/.gitignore b/.gitignore
index 6a67bcc..3997bea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-public/index.html
\ No newline at end of file
+*.db
\ No newline at end of file
diff --git a/lifestream.yaml b/lifestream.yaml
index 59a7e89..629c52e 100644
--- a/lifestream.yaml
+++ b/lifestream.yaml
@@ -1,31 +1,6 @@
-actions:
-    -
-        source: delicious
-        url: http://feeds.delicious.com/v2/rss/franck?count=20
-        source_url: http://delicious.com/franck
-        caption: Delicious
-    -
-        source: identica
-        url: http://identi.ca/api/statuses/user_timeline/franck.atom
-        source_url: http://identi.ca/franck
-        caption: Identi.ca
-    -
-        source: googlereader
-        url: http://www.google.com/reader/public/atom/user%2F17077268849154926648%2Fstate%2Fcom.google%2Fbroadcast
-        source_url: https://www.google.com/reader/shared/17077268849154926648
-        caption: Google Reader
-    -
-        source: myblog
-        url: http://lumberjaph.net/blog/index.php/feed/
-        source_url: http://lumberjaph.net/blog/
-        caption: My Blog
-    -
-        source: github
-        url: http://github.com/franckcuny.atom
-        source_url: http://github.com/franckcuny/
-        caption: github
-profiles:
-    -
-        source: lastfm
-        source_url: http://www.last.fm/user/franckcuny/
-        caption: Last.fm
+connect_info:
+  - dbi:SQLite:dbname=/tmp/lifestream.sqlite
+  - 
+  - 
+  -
+    AutoCommit: 1
diff --git a/templates/lifestream.html b/templates/lifestream.html
new file mode 100644
index 0000000..5dd46d8
--- /dev/null
+++ b/templates/lifestream.html
@@ -0,0 +1,88 @@
+% my $memes = $_[0]->{memes};
+% my $services = $_[0]->{services};
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <title>lumberjaph.net | lifestream</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+        <link rel="stylesheet" href="/static/lifestream.css" type="text/css" />
+        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
+    </head>
+
+    <body class="user-profile">
+        <div id="container">
+            <div>
+                <div id="header">
+                    <div id="flickr_badge_uber_wrapper">
+                        <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=10&display=latest&size=s&layout=h&source=user&user=27734462%40N00"></script>
+                    </div>
+                </div>
+
+                <div id="content">
+                    <div id="content-inner">
+                        <div id="alpha">
+                            <div id="alpha-inner">
+                                <div class="profile-header">
+                                    <div class="userpic"><img src="/static/images/me.jpg" alt="franck" /></div>
+                                    <div class="profile-header-content"><h1 id="page-title">franck cuny</h1></div>
+                                    <a href="http://lumberjaph.net/">lumberjpah.net</a><br />
+                                    mail: franck [at] lumberjaph [dot] net<br />
+                                    <a href="http://lumberjaph.net/blog/">blog</a><br />
+                                </div>
+
+                                <div class="actions">
+                                    <% while (my $m = $memes->{memes}->next ) { %>
+                                        <ul class="action-listing">
+                                            <li>
+                                            <span class="action-listing-date"><img src="<%= $m->feed->favico_url %>" /><%= $m->date %> - I posted to <a href="<%= $m->feed->profile_url %>"><%= $m->feed->name %></a></span><br /><span class="action-listing-title"><a href="<%= $m->permalink %>" target="_blank"><%= $m->title %></a></span>
+                                            </li>
+                                        </ul>
+                                     <% } %>
+                                </div>
+
+                        <div id="pager">
+                            <% for (1 .. $memes->{total}) { %>
+                            <a href="/?page=<%= $_ %>"><%= $_ %></a>
+                            <% } %>
+                        </div>
+                        </div>
+                    </div>
+
+                    <div id="beta">
+                        <div id="beta-inner">
+                            <div class="widget-elsewhere widget">
+                            <h3>find me elsewhere</h3>
+                                <div class="widget-content">
+                                    <ul class="action-stream-list">
+                                        <% while (my $s = $services->next) { %>
+                                        <li class="service-icon icon-service">
+                                        <img src="<%= $s->favico_url %>" /><a href="<%= $s->profile_url %>" rel="me"><%= $s->name %></a>
+                                        </li>
+                                        <% } %>
+                                        <li class="service-icon icon-service-flickr">
+                                            <a href="http://flickr.com/photos/franck_/" rel="me">Flickr Profile</a>
+                                        </li>
+                                    </ul>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+
+                <div id="footer">
+                    <div id="footer-inner">
+                        <div id="footer-content">
+                            <div class="widget-about-site widget">
+                                <h3 class="widget-header">About</h3>
+                                <div class="widget-content">
+                                    <a href="http://lumberjaph.net/code/?p=lifestream.git;a=summary">code</a> <a href="http://www.perlfoundation.org/artistic_license_2_0">artistic license</a> | content <a href="http://creativecommons.org/licenses/by/2.0/fr/deed.en">creatie commons</a>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </body>
+</html>