From 9a6fe2bf696c4c364518159735f4f5d12c666681 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 15 Mar 2013 08:20:00 +0100 Subject: Reaorganization of folders for the CSS, templates and pictures. --- source/css/log.css | 60 -------- source/css/style.css | 234 ----------------------------- source/img/blogmarks.png | Bin 195 -> 0 bytes source/img/check-news.png | Bin 1383 -> 0 bytes source/img/cross.png | Bin 655 -> 0 bytes source/img/diaspora.png | Bin 1179 -> 0 bytes source/img/digg.png | Bin 358 -> 0 bytes source/img/email-follow.png | Bin 4056 -> 0 bytes source/img/favicon.png | Bin 6879 -> 0 bytes source/img/feed-icon-28x28.png | Bin 1737 -> 0 bytes source/img/following-article.png | Bin 989 -> 0 bytes source/img/hacker-news.png | Bin 265 -> 0 bytes source/img/heart-32x32.png | Bin 2084 -> 0 bytes source/img/heart.png | Bin 634 -> 0 bytes source/img/heart_open.png | Bin 687 -> 0 bytes source/img/history.png | Bin 3257 -> 0 bytes source/img/identica.png | Bin 459 -> 0 bytes source/img/logout.png | Bin 1800 -> 0 bytes source/img/management.png | Bin 2916 -> 0 bytes source/img/mark-as-read.png | Bin 1762 -> 0 bytes source/img/pinboard.png | Bin 597 -> 0 bytes source/img/previous-article.png | Bin 997 -> 0 bytes source/img/reddit.png | Bin 525 -> 0 bytes source/img/scoopeo.png | Bin 295 -> 0 bytes source/img/tuxrss.png | Bin 6879 -> 0 bytes source/img/unread.png | Bin 1580 -> 0 bytes source/static/css/log.css | 60 ++++++++ source/static/css/style.css | 234 +++++++++++++++++++++++++++++ source/static/img/blogmarks.png | Bin 0 -> 195 bytes source/static/img/check-news.png | Bin 0 -> 1383 bytes source/static/img/cross.png | Bin 0 -> 655 bytes source/static/img/diaspora.png | Bin 0 -> 1179 bytes source/static/img/digg.png | Bin 0 -> 358 bytes source/static/img/email-follow.png | Bin 0 -> 4056 bytes source/static/img/favicon.png | Bin 0 -> 6879 bytes source/static/img/feed-icon-28x28.png | Bin 0 -> 1737 bytes source/static/img/following-article.png | Bin 0 -> 989 bytes source/static/img/hacker-news.png | Bin 0 -> 265 bytes source/static/img/heart-32x32.png | Bin 0 -> 2084 bytes source/static/img/heart.png | Bin 0 -> 634 bytes source/static/img/heart_open.png | Bin 0 -> 687 bytes source/static/img/history.png | Bin 0 -> 3257 bytes source/static/img/identica.png | Bin 0 -> 459 bytes source/static/img/logout.png | Bin 0 -> 1800 bytes source/static/img/management.png | Bin 0 -> 2916 bytes source/static/img/mark-as-read.png | Bin 0 -> 1762 bytes source/static/img/pinboard.png | Bin 0 -> 597 bytes source/static/img/previous-article.png | Bin 0 -> 997 bytes source/static/img/reddit.png | Bin 0 -> 525 bytes source/static/img/scoopeo.png | Bin 0 -> 295 bytes source/static/img/tuxrss.png | Bin 0 -> 6879 bytes source/static/img/unread.png | Bin 0 -> 1580 bytes source/static/templates/article.html | 58 +++++++ source/static/templates/articles.html | 39 +++++ source/static/templates/base.html | 28 ++++ source/static/templates/confirmation.html | 5 + source/static/templates/error.html | 5 + source/static/templates/favorites.html | 30 ++++ source/static/templates/feed.html | 138 +++++++++++++++++ source/static/templates/history.html | 80 ++++++++++ source/static/templates/inactives.html | 15 ++ source/static/templates/index.html | 107 +++++++++++++ source/static/templates/languages.html | 25 +++ source/static/templates/management.html | 80 ++++++++++ source/static/templates/notifications.html | 18 +++ source/static/templates/plain_text.html | 5 + source/static/templates/search.html | 53 +++++++ source/static/templates/statistics.html | 14 ++ source/static/templates/unread.html | 76 ++++++++++ source/templates/article.html | 58 ------- source/templates/articles.html | 39 ----- source/templates/base.html | 28 ---- source/templates/confirmation.html | 5 - source/templates/error.html | 5 - source/templates/favorites.html | 30 ---- source/templates/feed.html | 138 ----------------- source/templates/history.html | 80 ---------- source/templates/inactives.html | 15 -- source/templates/index.html | 107 ------------- source/templates/languages.html | 25 --- source/templates/management.html | 80 ---------- source/templates/notifications.html | 18 --- source/templates/plain_text.html | 5 - source/templates/search.html | 53 ------- source/templates/statistics.html | 14 -- source/templates/unread.html | 76 ---------- 86 files changed, 1070 insertions(+), 1070 deletions(-) delete mode 100644 source/css/log.css delete mode 100755 source/css/style.css delete mode 100755 source/img/blogmarks.png delete mode 100644 source/img/check-news.png delete mode 100644 source/img/cross.png delete mode 100644 source/img/diaspora.png delete mode 100755 source/img/digg.png delete mode 100644 source/img/email-follow.png delete mode 100644 source/img/favicon.png delete mode 100755 source/img/feed-icon-28x28.png delete mode 100644 source/img/following-article.png delete mode 100644 source/img/hacker-news.png delete mode 100644 source/img/heart-32x32.png delete mode 100644 source/img/heart.png delete mode 100644 source/img/heart_open.png delete mode 100644 source/img/history.png delete mode 100644 source/img/identica.png delete mode 100644 source/img/logout.png delete mode 100644 source/img/management.png delete mode 100644 source/img/mark-as-read.png delete mode 100644 source/img/pinboard.png delete mode 100644 source/img/previous-article.png delete mode 100755 source/img/reddit.png delete mode 100755 source/img/scoopeo.png delete mode 100644 source/img/tuxrss.png delete mode 100644 source/img/unread.png create mode 100644 source/static/css/log.css create mode 100755 source/static/css/style.css create mode 100755 source/static/img/blogmarks.png create mode 100644 source/static/img/check-news.png create mode 100644 source/static/img/cross.png create mode 100644 source/static/img/diaspora.png create mode 100755 source/static/img/digg.png create mode 100644 source/static/img/email-follow.png create mode 100644 source/static/img/favicon.png create mode 100755 source/static/img/feed-icon-28x28.png create mode 100644 source/static/img/following-article.png create mode 100644 source/static/img/hacker-news.png create mode 100644 source/static/img/heart-32x32.png create mode 100644 source/static/img/heart.png create mode 100644 source/static/img/heart_open.png create mode 100644 source/static/img/history.png create mode 100644 source/static/img/identica.png create mode 100644 source/static/img/logout.png create mode 100644 source/static/img/management.png create mode 100644 source/static/img/mark-as-read.png create mode 100644 source/static/img/pinboard.png create mode 100644 source/static/img/previous-article.png create mode 100755 source/static/img/reddit.png create mode 100755 source/static/img/scoopeo.png create mode 100644 source/static/img/tuxrss.png create mode 100644 source/static/img/unread.png create mode 100644 source/static/templates/article.html create mode 100644 source/static/templates/articles.html create mode 100644 source/static/templates/base.html create mode 100644 source/static/templates/confirmation.html create mode 100644 source/static/templates/error.html create mode 100644 source/static/templates/favorites.html create mode 100644 source/static/templates/feed.html create mode 100644 source/static/templates/history.html create mode 100644 source/static/templates/inactives.html create mode 100644 source/static/templates/index.html create mode 100644 source/static/templates/languages.html create mode 100644 source/static/templates/management.html create mode 100644 source/static/templates/notifications.html create mode 100644 source/static/templates/plain_text.html create mode 100644 source/static/templates/search.html create mode 100644 source/static/templates/statistics.html create mode 100644 source/static/templates/unread.html delete mode 100644 source/templates/article.html delete mode 100644 source/templates/articles.html delete mode 100644 source/templates/base.html delete mode 100644 source/templates/confirmation.html delete mode 100644 source/templates/error.html delete mode 100644 source/templates/favorites.html delete mode 100644 source/templates/feed.html delete mode 100644 source/templates/history.html delete mode 100644 source/templates/inactives.html delete mode 100644 source/templates/index.html delete mode 100644 source/templates/languages.html delete mode 100644 source/templates/management.html delete mode 100644 source/templates/notifications.html delete mode 100644 source/templates/plain_text.html delete mode 100644 source/templates/search.html delete mode 100644 source/templates/statistics.html delete mode 100644 source/templates/unread.html (limited to 'source') diff --git a/source/css/log.css b/source/css/log.css deleted file mode 100644 index 9ffd499a..00000000 --- a/source/css/log.css +++ /dev/null @@ -1,60 +0,0 @@ -body { - font:normal medium 'Gill Sans','Gill Sans MT',Verdana,sans-serif; - line-height:1.75; -} - -a:link { - color:#1c73b7; - text-decoration:none; - outline:0; -} - -a:visited { - color:#1c73b7; - text-decoration:none; - outline:0; -} - -a:active { - color:#1c73b7; - text-decoration:none; - outline:0; -} - -h1 { - font-size:x-large; - color:#0c85e5; -} - -h2 { - font-size:medium; -} - -h3 { - font-size:small; -} - -hr { - der-style:dotted; - height:1px; - border-width: 1px 0 0 0; - margin:1.45em 0 1.4em; - padding:0; -} - -#logform { - text-align:center; - clear: both; - position: float; - margin-top: 10%; -} - -#footer { - clear:both; - text-align:center; - font-size:small -} - -img { - border:0; -} diff --git a/source/css/style.css b/source/css/style.css deleted file mode 100755 index 86036357..00000000 --- a/source/css/style.css +++ /dev/null @@ -1,234 +0,0 @@ -html, body { - margin: 0px 0px 0px 5px; - padding: 0px 0px 0px 0px; - height: 100%; - overflow-x: hidden; - background-color: white; - color: black; - text-align: justify; - font: normal small 'Gill Sans','Gill Sans MT',Verdana,sans-serif; -} - -img { - border: 0px; -} - -h1 { - font-size: 100%; - margin: 0em 0em; - padding: 0px; -} - -h2 { - margin: 0.0em 0em; - padding: 0px; - font-style: normal; - font-variant: normal; - font-weight: bold; - font-size: 100%; - letter-spacing: 0em; - text-align: right; -} - -h3 { - margin: 0em 0em 0.5em 0em; - font-size: 100%; - font-weight: bold; - text-align: left; -} - -h1 a, h2 a, h3 a { - text-decoration: none; -} - -a:link, a:visited { - color: #003399; - text-decoration:none -} - -a:hover { - color: blue; -} - -hr { - color: white; - border-top: dotted black; - border-width: 1px 0px 0px 0px; - margin: 1em 0em; -} - -/* Menu */ -.menu_container { - position:fixed; - margin:0px; - padding:0px; - z-index:4; -} - -/* Navigation bars */ -.nav_container { - position:fixed; - top:112px; - right:5px; - margin:0px; - padding:0px; - white-space:nowrap; - z-index:3; - clear:both; -} -.nav_container.horizontal { - position:absolute; - white-space:normal; - z-index:4; - width:*; -} -.nav_container.horizontal div { - float:right; - padding-right:10px; -} - -#nav { - position: absolute; - top: 0px; - right: 0px; - z-index: 2; -} - -#heading, #nav ul, #nav li { - background: #EEEEEE; - color: inherit; - border-bottom: 0px solid black; -} - -#heading h1 { - margin: 0; - padding: 0.4em 0 0.4em 2em; - white-space: nowrap; -} - -#nav ul { - display: block; - margin: 0em 0em 0em 0em; - border-right: 0px solid #000000; -} - -#nav li { - margin: 0em; - padding: 0.1em 0em 0.2em 0.1em; - display: block; - float: left; - border-left: 0px solid #000000; -} - -.right { - clear: right; - float: right; - text-align: right; - margin: 0em 1em 0em 1em; - max-width: 25%; -} - -img.right { - width: auto; -} - -.inner .right { - margin-right: 0em; -} - -.right blockquote { - float: right; - position: relative; - clear: both; - padding-top: 1em; - padding-bottom: 0em; - margin-bottom: 0em; - font-style: italic; - width: 100%; - margin-right: 0em; -} - -blockquote.right { - width: 50%; - margin-left: 50%; - margin-right: 0em; -} - -/* Footer (W3C logos) */ - -#w3c { - text-align: right; - padding: 0em 2em 0em 2em; - clear: both; -} - -#w3c img { - padding-left: 10px; - padding-top: 1em; -} - -/* Classes */ - -.clear { - font-size: 1px; - height: 0px; - clear: both; -} - -.invisible { - display: none; -} - -.inner { - margin-top: 1em; - padding: 0em 0em 0em 0em; - clear: both; -} - -.innerlogo { - margin-top: 0em; - padding: 0em 0em 0em 1em; - clear: both; -} - -.left { - float: left; - position: absolute; -} - -.tex { - position: relative; top: 0.2em; - margin-left: -0.2em; - margin-right: -0.1em; -} - -/* CSS ToolTips */ -.tooltip { - color: #FFF; - outline: none; - text-decoration: none; - position: relative; -} - -.tooltip span { - color: #FFF; - margin-left: -999em; - position: absolute; -} - -.tooltip:hover span { - border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); - font-family: Calibri, Tahoma, Geneva, sans-serif; - position: absolute; left: 1em; top: 2em; z-index: 99; - margin-left: 0; width: 250px; -} -.classic { - padding: 0.8em 1em; - background: rgba(0, 0, 0, 0.85); - border: 5px 5px; -} - -* html a:hover { - background: transparent; -} \ No newline at end of file diff --git a/source/img/blogmarks.png b/source/img/blogmarks.png deleted file mode 100755 index 2464e5bb..00000000 Binary files a/source/img/blogmarks.png and /dev/null differ diff --git a/source/img/check-news.png b/source/img/check-news.png deleted file mode 100644 index cce7df39..00000000 Binary files a/source/img/check-news.png and /dev/null differ diff --git a/source/img/cross.png b/source/img/cross.png deleted file mode 100644 index 1514d51a..00000000 Binary files a/source/img/cross.png and /dev/null differ diff --git a/source/img/diaspora.png b/source/img/diaspora.png deleted file mode 100644 index fdf8bb72..00000000 Binary files a/source/img/diaspora.png and /dev/null differ diff --git a/source/img/digg.png b/source/img/digg.png deleted file mode 100755 index 097c4600..00000000 Binary files a/source/img/digg.png and /dev/null differ diff --git a/source/img/email-follow.png b/source/img/email-follow.png deleted file mode 100644 index 4505c610..00000000 Binary files a/source/img/email-follow.png and /dev/null differ diff --git a/source/img/favicon.png b/source/img/favicon.png deleted file mode 100644 index d4d38473..00000000 Binary files a/source/img/favicon.png and /dev/null differ diff --git a/source/img/feed-icon-28x28.png b/source/img/feed-icon-28x28.png deleted file mode 100755 index d64c669c..00000000 Binary files a/source/img/feed-icon-28x28.png and /dev/null differ diff --git a/source/img/following-article.png b/source/img/following-article.png deleted file mode 100644 index 0e59e459..00000000 Binary files a/source/img/following-article.png and /dev/null differ diff --git a/source/img/hacker-news.png b/source/img/hacker-news.png deleted file mode 100644 index ce92765d..00000000 Binary files a/source/img/hacker-news.png and /dev/null differ diff --git a/source/img/heart-32x32.png b/source/img/heart-32x32.png deleted file mode 100644 index 09b01cb5..00000000 Binary files a/source/img/heart-32x32.png and /dev/null differ diff --git a/source/img/heart.png b/source/img/heart.png deleted file mode 100644 index f36f3cfd..00000000 Binary files a/source/img/heart.png and /dev/null differ diff --git a/source/img/heart_open.png b/source/img/heart_open.png deleted file mode 100644 index e1c6e027..00000000 Binary files a/source/img/heart_open.png and /dev/null differ diff --git a/source/img/history.png b/source/img/history.png deleted file mode 100644 index 2a57cc17..00000000 Binary files a/source/img/history.png and /dev/null differ diff --git a/source/img/identica.png b/source/img/identica.png deleted file mode 100644 index 18b5bd2b..00000000 Binary files a/source/img/identica.png and /dev/null differ diff --git a/source/img/logout.png b/source/img/logout.png deleted file mode 100644 index 55316f8b..00000000 Binary files a/source/img/logout.png and /dev/null differ diff --git a/source/img/management.png b/source/img/management.png deleted file mode 100644 index 7bcbc384..00000000 Binary files a/source/img/management.png and /dev/null differ diff --git a/source/img/mark-as-read.png b/source/img/mark-as-read.png deleted file mode 100644 index ffc90910..00000000 Binary files a/source/img/mark-as-read.png and /dev/null differ diff --git a/source/img/pinboard.png b/source/img/pinboard.png deleted file mode 100644 index 6dddc10b..00000000 Binary files a/source/img/pinboard.png and /dev/null differ diff --git a/source/img/previous-article.png b/source/img/previous-article.png deleted file mode 100644 index fcd9bfd8..00000000 Binary files a/source/img/previous-article.png and /dev/null differ diff --git a/source/img/reddit.png b/source/img/reddit.png deleted file mode 100755 index 2d615f2a..00000000 Binary files a/source/img/reddit.png and /dev/null differ diff --git a/source/img/scoopeo.png b/source/img/scoopeo.png deleted file mode 100755 index 052c7dc8..00000000 Binary files a/source/img/scoopeo.png and /dev/null differ diff --git a/source/img/tuxrss.png b/source/img/tuxrss.png deleted file mode 100644 index d4d38473..00000000 Binary files a/source/img/tuxrss.png and /dev/null differ diff --git a/source/img/unread.png b/source/img/unread.png deleted file mode 100644 index d3a641c7..00000000 Binary files a/source/img/unread.png and /dev/null differ diff --git a/source/static/css/log.css b/source/static/css/log.css new file mode 100644 index 00000000..9ffd499a --- /dev/null +++ b/source/static/css/log.css @@ -0,0 +1,60 @@ +body { + font:normal medium 'Gill Sans','Gill Sans MT',Verdana,sans-serif; + line-height:1.75; +} + +a:link { + color:#1c73b7; + text-decoration:none; + outline:0; +} + +a:visited { + color:#1c73b7; + text-decoration:none; + outline:0; +} + +a:active { + color:#1c73b7; + text-decoration:none; + outline:0; +} + +h1 { + font-size:x-large; + color:#0c85e5; +} + +h2 { + font-size:medium; +} + +h3 { + font-size:small; +} + +hr { + der-style:dotted; + height:1px; + border-width: 1px 0 0 0; + margin:1.45em 0 1.4em; + padding:0; +} + +#logform { + text-align:center; + clear: both; + position: float; + margin-top: 10%; +} + +#footer { + clear:both; + text-align:center; + font-size:small +} + +img { + border:0; +} diff --git a/source/static/css/style.css b/source/static/css/style.css new file mode 100755 index 00000000..86036357 --- /dev/null +++ b/source/static/css/style.css @@ -0,0 +1,234 @@ +html, body { + margin: 0px 0px 0px 5px; + padding: 0px 0px 0px 0px; + height: 100%; + overflow-x: hidden; + background-color: white; + color: black; + text-align: justify; + font: normal small 'Gill Sans','Gill Sans MT',Verdana,sans-serif; +} + +img { + border: 0px; +} + +h1 { + font-size: 100%; + margin: 0em 0em; + padding: 0px; +} + +h2 { + margin: 0.0em 0em; + padding: 0px; + font-style: normal; + font-variant: normal; + font-weight: bold; + font-size: 100%; + letter-spacing: 0em; + text-align: right; +} + +h3 { + margin: 0em 0em 0.5em 0em; + font-size: 100%; + font-weight: bold; + text-align: left; +} + +h1 a, h2 a, h3 a { + text-decoration: none; +} + +a:link, a:visited { + color: #003399; + text-decoration:none +} + +a:hover { + color: blue; +} + +hr { + color: white; + border-top: dotted black; + border-width: 1px 0px 0px 0px; + margin: 1em 0em; +} + +/* Menu */ +.menu_container { + position:fixed; + margin:0px; + padding:0px; + z-index:4; +} + +/* Navigation bars */ +.nav_container { + position:fixed; + top:112px; + right:5px; + margin:0px; + padding:0px; + white-space:nowrap; + z-index:3; + clear:both; +} +.nav_container.horizontal { + position:absolute; + white-space:normal; + z-index:4; + width:*; +} +.nav_container.horizontal div { + float:right; + padding-right:10px; +} + +#nav { + position: absolute; + top: 0px; + right: 0px; + z-index: 2; +} + +#heading, #nav ul, #nav li { + background: #EEEEEE; + color: inherit; + border-bottom: 0px solid black; +} + +#heading h1 { + margin: 0; + padding: 0.4em 0 0.4em 2em; + white-space: nowrap; +} + +#nav ul { + display: block; + margin: 0em 0em 0em 0em; + border-right: 0px solid #000000; +} + +#nav li { + margin: 0em; + padding: 0.1em 0em 0.2em 0.1em; + display: block; + float: left; + border-left: 0px solid #000000; +} + +.right { + clear: right; + float: right; + text-align: right; + margin: 0em 1em 0em 1em; + max-width: 25%; +} + +img.right { + width: auto; +} + +.inner .right { + margin-right: 0em; +} + +.right blockquote { + float: right; + position: relative; + clear: both; + padding-top: 1em; + padding-bottom: 0em; + margin-bottom: 0em; + font-style: italic; + width: 100%; + margin-right: 0em; +} + +blockquote.right { + width: 50%; + margin-left: 50%; + margin-right: 0em; +} + +/* Footer (W3C logos) */ + +#w3c { + text-align: right; + padding: 0em 2em 0em 2em; + clear: both; +} + +#w3c img { + padding-left: 10px; + padding-top: 1em; +} + +/* Classes */ + +.clear { + font-size: 1px; + height: 0px; + clear: both; +} + +.invisible { + display: none; +} + +.inner { + margin-top: 1em; + padding: 0em 0em 0em 0em; + clear: both; +} + +.innerlogo { + margin-top: 0em; + padding: 0em 0em 0em 1em; + clear: both; +} + +.left { + float: left; + position: absolute; +} + +.tex { + position: relative; top: 0.2em; + margin-left: -0.2em; + margin-right: -0.1em; +} + +/* CSS ToolTips */ +.tooltip { + color: #FFF; + outline: none; + text-decoration: none; + position: relative; +} + +.tooltip span { + color: #FFF; + margin-left: -999em; + position: absolute; +} + +.tooltip:hover span { + border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); + font-family: Calibri, Tahoma, Geneva, sans-serif; + position: absolute; left: 1em; top: 2em; z-index: 99; + margin-left: 0; width: 250px; +} +.classic { + padding: 0.8em 1em; + background: rgba(0, 0, 0, 0.85); + border: 5px 5px; +} + +* html a:hover { + background: transparent; +} \ No newline at end of file diff --git a/source/static/img/blogmarks.png b/source/static/img/blogmarks.png new file mode 100755 index 00000000..2464e5bb Binary files /dev/null and b/source/static/img/blogmarks.png differ diff --git a/source/static/img/check-news.png b/source/static/img/check-news.png new file mode 100644 index 00000000..cce7df39 Binary files /dev/null and b/source/static/img/check-news.png differ diff --git a/source/static/img/cross.png b/source/static/img/cross.png new file mode 100644 index 00000000..1514d51a Binary files /dev/null and b/source/static/img/cross.png differ diff --git a/source/static/img/diaspora.png b/source/static/img/diaspora.png new file mode 100644 index 00000000..fdf8bb72 Binary files /dev/null and b/source/static/img/diaspora.png differ diff --git a/source/static/img/digg.png b/source/static/img/digg.png new file mode 100755 index 00000000..097c4600 Binary files /dev/null and b/source/static/img/digg.png differ diff --git a/source/static/img/email-follow.png b/source/static/img/email-follow.png new file mode 100644 index 00000000..4505c610 Binary files /dev/null and b/source/static/img/email-follow.png differ diff --git a/source/static/img/favicon.png b/source/static/img/favicon.png new file mode 100644 index 00000000..d4d38473 Binary files /dev/null and b/source/static/img/favicon.png differ diff --git a/source/static/img/feed-icon-28x28.png b/source/static/img/feed-icon-28x28.png new file mode 100755 index 00000000..d64c669c Binary files /dev/null and b/source/static/img/feed-icon-28x28.png differ diff --git a/source/static/img/following-article.png b/source/static/img/following-article.png new file mode 100644 index 00000000..0e59e459 Binary files /dev/null and b/source/static/img/following-article.png differ diff --git a/source/static/img/hacker-news.png b/source/static/img/hacker-news.png new file mode 100644 index 00000000..ce92765d Binary files /dev/null and b/source/static/img/hacker-news.png differ diff --git a/source/static/img/heart-32x32.png b/source/static/img/heart-32x32.png new file mode 100644 index 00000000..09b01cb5 Binary files /dev/null and b/source/static/img/heart-32x32.png differ diff --git a/source/static/img/heart.png b/source/static/img/heart.png new file mode 100644 index 00000000..f36f3cfd Binary files /dev/null and b/source/static/img/heart.png differ diff --git a/source/static/img/heart_open.png b/source/static/img/heart_open.png new file mode 100644 index 00000000..e1c6e027 Binary files /dev/null and b/source/static/img/heart_open.png differ diff --git a/source/static/img/history.png b/source/static/img/history.png new file mode 100644 index 00000000..2a57cc17 Binary files /dev/null and b/source/static/img/history.png differ diff --git a/source/static/img/identica.png b/source/static/img/identica.png new file mode 100644 index 00000000..18b5bd2b Binary files /dev/null and b/source/static/img/identica.png differ diff --git a/source/static/img/logout.png b/source/static/img/logout.png new file mode 100644 index 00000000..55316f8b Binary files /dev/null and b/source/static/img/logout.png differ diff --git a/source/static/img/management.png b/source/static/img/management.png new file mode 100644 index 00000000..7bcbc384 Binary files /dev/null and b/source/static/img/management.png differ diff --git a/source/static/img/mark-as-read.png b/source/static/img/mark-as-read.png new file mode 100644 index 00000000..ffc90910 Binary files /dev/null and b/source/static/img/mark-as-read.png differ diff --git a/source/static/img/pinboard.png b/source/static/img/pinboard.png new file mode 100644 index 00000000..6dddc10b Binary files /dev/null and b/source/static/img/pinboard.png differ diff --git a/source/static/img/previous-article.png b/source/static/img/previous-article.png new file mode 100644 index 00000000..fcd9bfd8 Binary files /dev/null and b/source/static/img/previous-article.png differ diff --git a/source/static/img/reddit.png b/source/static/img/reddit.png new file mode 100755 index 00000000..2d615f2a Binary files /dev/null and b/source/static/img/reddit.png differ diff --git a/source/static/img/scoopeo.png b/source/static/img/scoopeo.png new file mode 100755 index 00000000..052c7dc8 Binary files /dev/null and b/source/static/img/scoopeo.png differ diff --git a/source/static/img/tuxrss.png b/source/static/img/tuxrss.png new file mode 100644 index 00000000..d4d38473 Binary files /dev/null and b/source/static/img/tuxrss.png differ diff --git a/source/static/img/unread.png b/source/static/img/unread.png new file mode 100644 index 00000000..d3a641c7 Binary files /dev/null and b/source/static/img/unread.png differ diff --git a/source/static/templates/article.html b/source/static/templates/article.html new file mode 100644 index 00000000..bd459c4e --- /dev/null +++ b/source/static/templates/article.html @@ -0,0 +1,58 @@ +## article.html +<%inherit file="base.html"/> +
+
+

${article["article_title"]} from ${feed["feed_title"]}

+
+ %if article["article_like"]: + + %else: + + %endif +    +

+ + ${description} + +
+
+
+ +
+ Plain text + - Export to EPUB +
+ Complete story +
+ + Share this article:
+ + + + + + + + + + + + + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/source/static/templates/articles.html b/source/static/templates/articles.html new file mode 100644 index 00000000..cbba2508 --- /dev/null +++ b/source/static/templates/articles.html @@ -0,0 +1,39 @@ +## articles.html +<%inherit file="base.html"/> +<% +import utils +%> + + +
+

Articles of the feed ${feed['feed_title']}

+
+ %for article in articles: + <% + if article["article_readed"] == False: + not_read_begin, not_read_end = "", "" + else: + not_read_begin, not_read_end = "", "" + + if article["article_like"] == True: + like = """ """ + else: + like = "" + + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + %> + ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${not_read_begin}${article["article_title"][:150]}${not_read_end}${description} +
+ %endfor +

All feeds

\ No newline at end of file diff --git a/source/static/templates/base.html b/source/static/templates/base.html new file mode 100644 index 00000000..aa375470 --- /dev/null +++ b/source/static/templates/base.html @@ -0,0 +1,28 @@ +## base.html + + + + + %if header_text is UNDEFINED: + pyAggr3g470r + %elif header_text == 0: + pyAggr3g470r + %else: + ${header_text} - pyAggr3g470r + %endif + + + + + +

pyAggr3g470r

+ ${self.body()} +
+

This software is under GPLv3 license. You are welcome to copy, modify or + redistribute the source code according to the GPLv3 license.
+ Source code of pyAggr3g470r.

+
+ + \ No newline at end of file diff --git a/source/static/templates/confirmation.html b/source/static/templates/confirmation.html new file mode 100644 index 00000000..ae206838 --- /dev/null +++ b/source/static/templates/confirmation.html @@ -0,0 +1,5 @@ +## confirmation.html +<%inherit file="base.html"/> +
+

Your request processed successfully:

+

${message}

diff --git a/source/static/templates/error.html b/source/static/templates/error.html new file mode 100644 index 00000000..3790d3e9 --- /dev/null +++ b/source/static/templates/error.html @@ -0,0 +1,5 @@ +## error.html +<%inherit file="base.html"/> +
+

An error occured:

+ ${message} \ No newline at end of file diff --git a/source/static/templates/favorites.html b/source/static/templates/favorites.html new file mode 100644 index 00000000..4dd17b6b --- /dev/null +++ b/source/static/templates/favorites.html @@ -0,0 +1,30 @@ +## favorites.html +<%inherit file="base.html"/> +<% +import utils +%> +
+

Your favorites articles (${sum([elem.count() for elem in articles.values()])})

+ %for feed in feeds: + <% + new_feed_section = True + %> + %for article in articles[feed["feed_id"]]: + <% + if new_feed_section: + new_feed_section = False + title = """

%s

\n""" % \ + (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) + else: + title = "" + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + %> + ${title} + + ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"][:150]}${description}
+ %endfor + %endfor diff --git a/source/static/templates/feed.html b/source/static/templates/feed.html new file mode 100644 index 00000000..f4a35e77 --- /dev/null +++ b/source/static/templates/feed.html @@ -0,0 +1,138 @@ +## feed.html +<%inherit file="base.html"/> +<% +import utils +%> +
+

The feed ${feed['feed_title']} contains ${format(nb_articles_feed, ',d')} articles. + Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${format(nb_articles_total, ',d')} articles). +
+ Address of the feed: ${feed['feed_link']}. +
+ Address of the site: ${feed['site_link']}.

+ + %if articles: +

${(nb_unread_articles_feed == 0 and ["All articles are read"] or [str(nb_unread_articles_feed) + " unread article" + (nb_unread_articles_feed == 1 and [""] or ["s"])[0]])[0]}.

+ %endif + + %if feed["mail"] == True: +

+ You are receiving articles from this feed to the address: ${mail_to}. + Stop receiving articles from this feed. + %if not mail_notification_enabled: +
However e-mail notification is disabled in the configuration file. + %endif +

+ %endif + + %if articles != []: +

The last article was posted ${elapsed.days} day(s) ago.
+ Daily average: ${average}, between the ${first_post_date.strftime('%Y-%m-%d')} and the ${end_post_date.strftime('%Y-%m-%d')}.

+ +
+

Recent articles

+ <% + html = "" + %> + %for article in articles: + <% + if article["article_readed"] == False: + # not readed articles are in bold + not_read_begin, not_read_end = "", "" + else: + not_read_begin, not_read_end = "", "" + + # display a heart for faved articles + if article["article_like"] == True: + like = """ """ + else: + like = "" + + # Descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + # Title of the article + article_title = article["article_title"] + if len(article_title) >= 80: + article_title = article_title[:80] + " ..." + + # a description line per article (date, title of the article and + # CSS description tooltips on mouse over) + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ + """%s%s%s%s""" % \ + (feed["feed_id"], article["article_id"], not_read_begin, \ + article_title, not_read_end, description) + like + "
\n" + %> + %endfor + ${html} + + All articles    +
+ + %if nb_favorites != 0: +

+

Your favorites articles for this feed

+ <% + html = "" + %> + %for article in favorites: + <% + #descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + + # a description line per article (date, title of the article and + # CSS description tooltips on mouse over) + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ + """%s%s
\n""" % \ + (feed["feed_id"], article["article_id"], article["article_title"][:150], description) + %> + %endfor + ${html} + %endif + %else: +

No articles yet.

+ %endif + + + +
+

Edit this feed

+
+ + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + +
+ + + %if articles != []: +
+

Tag cloud

+
+ Minimum size of a word: + +
+
${tag_cloud}
+ %endif diff --git a/source/static/templates/history.html b/source/static/templates/history.html new file mode 100644 index 00000000..e6826032 --- /dev/null +++ b/source/static/templates/history.html @@ -0,0 +1,80 @@ +## history.html +<%inherit file="base.html"/> +<% +import utils +import calendar +from collections import Counter +%> +
+ <% + html = "" + # Get the date from the tag cloud + # Format: /history/?query=year:2011-month:06 to get the + # list of articles of June, 2011. + if query == "all": + html += "

Search with tags cloud

\n" + html += "

Choose a year

\n" + if "year" in query: + the_year = query.split('-')[0].split(':')[1] + if "month" not in query: + html += "

Choose a month for " + the_year + "

\n" + if "month" in query: + the_month = query.split('-')[1].split(':')[1] + html += "

Articles of "+ calendar.month_name[int(the_month)] + ", "+ the_year +".

\n" + + timeline = Counter() + for feed in feeds: + new_feed_section = True + for article in mongo.get_articles(feed["feed_id"]): + + if query == "all": + timeline[article["article_date"].strftime('%Y')] += 1 + + elif query[:4] == "year": + + if article["article_date"].strftime('%Y') == the_year: + timeline[article["article_date"].strftime('%m')] += 1 + + if "month" in query: + if article["article_date"].strftime('%m') == the_month: + if article["article_readed"] == False: + # not readed articles are in bold + not_read_begin, not_read_end = "", "" + else: + not_read_begin, not_read_end = "", "" + + if article["article_like"] == True: + like = """ """ + else: + like = "" + # Descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + # Title of the article + article_title = article["article_title"] + if len(article_title) >= 80: + article_title = article_title[:80] + " ..." + + if new_feed_section is True: + new_feed_section = False + html += """

%s

\n""" % \ + (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) + + html += article["article_date"].strftime("%a %d (%H:%M:%S) ") + " - " + \ + """%s%s%s%s""" % \ + (feed["feed_id"], article["article_id"], not_read_begin, \ + article_title, not_read_end, description) + like + "
\n" + if query == "all": + query_string = "year" + elif "year" in query: + query_string = "year:" + the_year + "-month" + if "month" not in query: + html += '
' + \ + utils.tag_cloud([(elem, timeline[elem]) for elem in timeline.keys()], query_string) + '
' + %> + ${html} \ No newline at end of file diff --git a/source/static/templates/inactives.html b/source/static/templates/inactives.html new file mode 100644 index 00000000..57482b61 --- /dev/null +++ b/source/static/templates/inactives.html @@ -0,0 +1,15 @@ +## inactives.html +<%inherit file="base.html"/> +
+ %if inactives != []: +
+

Feeds with no recent articles since days:

+
+ + %else: +

No inactive feeds.

+ %endif diff --git a/source/static/templates/index.html b/source/static/templates/index.html new file mode 100644 index 00000000..43269f0a --- /dev/null +++ b/source/static/templates/index.html @@ -0,0 +1,107 @@ +## index.html +<%inherit file="base.html"/> +<% +import utils +%> +

+
+ +
+
+ +
+ +
+
+ <% + html = "" + %> + <% + for feed in feeds: + html += """\n

%s + + + +

\n
""" % \ + (feed["feed_id"], feed["site_link"], feed["feed_title"], \ + feed["feed_link"], feed["feed_image"]) + + # The main page display only 10 articles by feeds. + for article in mongo.get_articles(feed["feed_id"], limit=10): + if article["article_readed"] == False: + # not readed articles are in bold + not_read_begin, not_read_end = "", "" + else: + not_read_begin, not_read_end = "", "" + + # display a heart for faved articles + if article["article_like"] == True: + like = """ """ + else: + like = "" + + # Descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content.split(' ')[:55]) + else: + description = "No description." + # Title of the article + article_title = article["article_title"] + if len(article_title) >= 80: + article_title = article_title[:80] + " ..." + + # a description line per article (date, title of the article and + # CSS description tooltips on mouse over) + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ + """%s%s%s%s""" % \ + (feed["feed_id"], article["article_id"], not_read_begin, \ + article_title, not_read_end, description) + like + "
\n" + html += "
\n" + + # some options for the current feed + html += """All articles   """ % (feed["feed_id"],) + html += """Feed summary   """ % (feed["feed_id"],) + html += """

\n""" % (feed["feed_id"],) + if mongo.nb_unread_articles(feed["feed_id"]) != 0: + html += """  Mark all as read""" % (feed["feed_id"],) + html += """     Unread article(s) (%s)""" % (feed["feed_id"], mongo.nb_unread_articles(feed["feed_id"])) + if feed["mail"] == False: + html += """
\nStay tuned""" % (feed["feed_id"],) + else: + html += """
\nStop staying tuned""" % (feed["feed_id"],) + html += """

Top

\n""" + %> + ${html} diff --git a/source/static/templates/languages.html b/source/static/templates/languages.html new file mode 100644 index 00000000..d186677d --- /dev/null +++ b/source/static/templates/languages.html @@ -0,0 +1,25 @@ +## languages.html +<%inherit file="base.html"/> +
+

Summary

+
    + %for language in articles_sorted_by_languages.keys(): +
  • ${language}: ${sum(map(len, articles_sorted_by_languages[language].values()))} articles
  • + %endfor +
+ %for language in articles_sorted_by_languages.keys(): +
+

${language}

+ %for feed_id in articles_sorted_by_languages[language]: + <% + feed = mongo.get_feed(feed_id) + %> +

${feed["feed_title"]}

+ %for article in articles_sorted_by_languages[language][feed_id][:10]: + ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"]} +
+ %endfor +
+ %endfor +
+ %endfor \ No newline at end of file diff --git a/source/static/templates/management.html b/source/static/templates/management.html new file mode 100644 index 00000000..a2bce1dc --- /dev/null +++ b/source/static/templates/management.html @@ -0,0 +1,80 @@ +## management.html +<%inherit file="base.html"/> +
+

Subscriptions

+
+

+ Add a feed: + + +

+
+ + %if feeds: +
+ Delete the feed: + + +
+ %endif + + %if not mail_notification_enabled: +

E-mail notification is disabled in the configuration file.

+ %endif + + %if feeds: +
+

Facts

+ + %endif + +
+ +

Account

+

+

+ +
+
+
+ +
+

+ +
+ + +

Database

+

${nb_articles} article(s) are stored in the database with ${nb_unread_articles} unread article(s). + +

+ +
+
+ +
+ +
+ +

Export articles

+

+

+ + +
+

diff --git a/source/static/templates/notifications.html b/source/static/templates/notifications.html new file mode 100644 index 00000000..88558b05 --- /dev/null +++ b/source/static/templates/notifications.html @@ -0,0 +1,18 @@ +## article.html +<%inherit file="base.html"/> +
+ %if feeds != []: +

You are receiving e-mails for the following feeds:

+ + %else: +

No active notifications.

+ %endif +

Notifications are sent to: ${mail_to}. + %if not mail_notification_enabled: + However e-mail notification is disabled in the configuration file. + %endif +

diff --git a/source/static/templates/plain_text.html b/source/static/templates/plain_text.html new file mode 100644 index 00000000..44b7da91 --- /dev/null +++ b/source/static/templates/plain_text.html @@ -0,0 +1,5 @@ +## plain_text.html +<%inherit file="base.html"/> +
+

${article_title} from ${feed_title}


+ ${description} \ No newline at end of file diff --git a/source/static/templates/search.html b/source/static/templates/search.html new file mode 100644 index 00000000..da766ee9 --- /dev/null +++ b/source/static/templates/search.html @@ -0,0 +1,53 @@ +## search.html +<%inherit file="base.html"/> +<% +import utils +%> +
+%if len(search_result) != 0: +

Articles containing the string ${query} (${sum([articles.count() for articles in search_result.values()])} results)

+%else: +

String ${query} not found.

+%endif +<% + html = "" + feed_id = None +%> + +%for feed_id in search_result.keys(): + <% + new_feed_section = True + feed = mongo.get_feed(feed_id) + print(search_result[feed["feed_id"]].count()) + for article in search_result[feed["feed_id"]]: + if new_feed_section is True: + new_feed_section = False + html += """

%s

\n""" % \ + (feed["feed_id"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) + + if article["article_readed"] == False: + # not readed articles are in bold + not_read_begin, not_read_end = "", "" + else: + not_read_begin, not_read_end = "", "" + + # display a heart for faved articles + if article["article_like"] == True: + like = """ """ + else: + like = "" + + # descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + description = " ".join(article_content[:500].split(' ')[:-1]) + + # a description line per article (date, title of the article and + # CSS description tooltips on mouse over) + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ + """%s%s%s%s""" % \ + (feed["feed_id"], article["article_id"], not_read_begin, \ + article["article_title"][:150], not_read_end, description) + like + "
\n" + %> +%endfor + +${html} \ No newline at end of file diff --git a/source/static/templates/statistics.html b/source/static/templates/statistics.html new file mode 100644 index 00000000..5dfcbfa8 --- /dev/null +++ b/source/static/templates/statistics.html @@ -0,0 +1,14 @@ +## statistics.html +<%inherit file="base.html"/> +
+ %if articles: +

Statistics

+

Tag cloud

+
+ Minimum size of a word: + +
+
+ ${tag_cloud} +
+ %endif \ No newline at end of file diff --git a/source/static/templates/unread.html b/source/static/templates/unread.html new file mode 100644 index 00000000..d37d3034 --- /dev/null +++ b/source/static/templates/unread.html @@ -0,0 +1,76 @@ +## unread.html +<%inherit file="base.html"/> +<% +import utils +%> +
+ <% + html = "" + if mongo.nb_unread_articles() != 0: + + # List unread articles of all the database + if feed_id == "": + html += "

Unread article(s)

" + html += """\n
\nMark articles as read\n
\n""" + for feed in feeds: + new_feed_section = True + nb_unread = 0 + + # For all unread article of the current feed. + for article in mongo.get_articles(feed["feed_id"], condition=("article_readed", False)): + nb_unread += 1 + if new_feed_section is True: + new_feed_section = False + html += """

%s

\n""" % \ + (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) + + # descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + + # a description line per article (date, title of the article and + # CSS description tooltips on mouse over) + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ + """%s%s
\n""" % \ + (feed["feed_id"], article["article_id"], article["article_title"][:150], description) + + if nb_unread == mongo.nb_unread_articles(feed["feed_id"]): + html += """
\nMark all articles from this feed as read\n""" % \ + (feed["feed_id"],) + html += """
\nMark articles as read\n""" + + + # List unread articles of a feed + else: + try: + feed = mongo.get_feed(feed_id) + except: + return "

This feed do not exists.

" + html += """

Unread article(s) of the feed %s

+
""" % (feed_id, feed["feed_title"]) + + # For all unread article of the feed. + for article in mongo.get_articles(feed_id, condition=("article_readed", False)): + # descrition for the CSS ToolTips + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + + # a description line per article (date, title of the article and + # CSS description tooltips on mouse over) + html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ + """%s%s
\n""" % \ + (feed_id, article["article_id"], article["article_title"][:150], description) + + html += """
\nMark all as read""" % (feed_id,) + # No unread article + else: + html += '

No unread article(s)

\n
\nWhy not check for news?' + html += """\n

All feeds

""" + %> + ${html} \ No newline at end of file diff --git a/source/templates/article.html b/source/templates/article.html deleted file mode 100644 index bd459c4e..00000000 --- a/source/templates/article.html +++ /dev/null @@ -1,58 +0,0 @@ -## article.html -<%inherit file="base.html"/> -
-
-

${article["article_title"]} from ${feed["feed_title"]}

-
- %if article["article_like"]: - - %else: - - %endif -    -

- - ${description} - -
-
-
- -
- Plain text - - Export to EPUB -
- Complete story -
- - Share this article:
- - - - - - - - - - - - - - - - - - - - - - - -
- \ No newline at end of file diff --git a/source/templates/articles.html b/source/templates/articles.html deleted file mode 100644 index cbba2508..00000000 --- a/source/templates/articles.html +++ /dev/null @@ -1,39 +0,0 @@ -## articles.html -<%inherit file="base.html"/> -<% -import utils -%> - - -
-

Articles of the feed ${feed['feed_title']}

-
- %for article in articles: - <% - if article["article_readed"] == False: - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - if article["article_like"] == True: - like = """ """ - else: - like = "" - - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - %> - ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${not_read_begin}${article["article_title"][:150]}${not_read_end}${description} -
- %endfor -

All feeds

\ No newline at end of file diff --git a/source/templates/base.html b/source/templates/base.html deleted file mode 100644 index aa375470..00000000 --- a/source/templates/base.html +++ /dev/null @@ -1,28 +0,0 @@ -## base.html - - - - - %if header_text is UNDEFINED: - pyAggr3g470r - %elif header_text == 0: - pyAggr3g470r - %else: - ${header_text} - pyAggr3g470r - %endif - - - - - -

pyAggr3g470r

- ${self.body()} -
-

This software is under GPLv3 license. You are welcome to copy, modify or - redistribute the source code according to the GPLv3 license.
- Source code of pyAggr3g470r.

-
- - \ No newline at end of file diff --git a/source/templates/confirmation.html b/source/templates/confirmation.html deleted file mode 100644 index ae206838..00000000 --- a/source/templates/confirmation.html +++ /dev/null @@ -1,5 +0,0 @@ -## confirmation.html -<%inherit file="base.html"/> -
-

Your request processed successfully:

-

${message}

diff --git a/source/templates/error.html b/source/templates/error.html deleted file mode 100644 index 3790d3e9..00000000 --- a/source/templates/error.html +++ /dev/null @@ -1,5 +0,0 @@ -## error.html -<%inherit file="base.html"/> -
-

An error occured:

- ${message} \ No newline at end of file diff --git a/source/templates/favorites.html b/source/templates/favorites.html deleted file mode 100644 index 4dd17b6b..00000000 --- a/source/templates/favorites.html +++ /dev/null @@ -1,30 +0,0 @@ -## favorites.html -<%inherit file="base.html"/> -<% -import utils -%> -
-

Your favorites articles (${sum([elem.count() for elem in articles.values()])})

- %for feed in feeds: - <% - new_feed_section = True - %> - %for article in articles[feed["feed_id"]]: - <% - if new_feed_section: - new_feed_section = False - title = """

%s

\n""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - else: - title = "" - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - %> - ${title} - - ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"][:150]}${description}
- %endfor - %endfor diff --git a/source/templates/feed.html b/source/templates/feed.html deleted file mode 100644 index f4a35e77..00000000 --- a/source/templates/feed.html +++ /dev/null @@ -1,138 +0,0 @@ -## feed.html -<%inherit file="base.html"/> -<% -import utils -%> -
-

The feed ${feed['feed_title']} contains ${format(nb_articles_feed, ',d')} articles. - Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${format(nb_articles_total, ',d')} articles). -
- Address of the feed: ${feed['feed_link']}. -
- Address of the site: ${feed['site_link']}.

- - %if articles: -

${(nb_unread_articles_feed == 0 and ["All articles are read"] or [str(nb_unread_articles_feed) + " unread article" + (nb_unread_articles_feed == 1 and [""] or ["s"])[0]])[0]}.

- %endif - - %if feed["mail"] == True: -

- You are receiving articles from this feed to the address: ${mail_to}. - Stop receiving articles from this feed. - %if not mail_notification_enabled: -
However e-mail notification is disabled in the configuration file. - %endif -

- %endif - - %if articles != []: -

The last article was posted ${elapsed.days} day(s) ago.
- Daily average: ${average}, between the ${first_post_date.strftime('%Y-%m-%d')} and the ${end_post_date.strftime('%Y-%m-%d')}.

- -
-

Recent articles

- <% - html = "" - %> - %for article in articles: - <% - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - # display a heart for faved articles - if article["article_like"] == True: - like = """ """ - else: - like = "" - - # Descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - # Title of the article - article_title = article["article_title"] - if len(article_title) >= 80: - article_title = article_title[:80] + " ..." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article_title, not_read_end, description) + like + "
\n" - %> - %endfor - ${html} - - All articles    -
- - %if nb_favorites != 0: -

-

Your favorites articles for this feed

- <% - html = "" - %> - %for article in favorites: - <% - #descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s
\n""" % \ - (feed["feed_id"], article["article_id"], article["article_title"][:150], description) - %> - %endfor - ${html} - %endif - %else: -

No articles yet.

- %endif - - - -
-

Edit this feed

-
- - -
- -
- - - -
- -
- - - -
- -
- - -
- - - %if articles != []: -
-

Tag cloud

-
- Minimum size of a word: - -
-
${tag_cloud}
- %endif diff --git a/source/templates/history.html b/source/templates/history.html deleted file mode 100644 index e6826032..00000000 --- a/source/templates/history.html +++ /dev/null @@ -1,80 +0,0 @@ -## history.html -<%inherit file="base.html"/> -<% -import utils -import calendar -from collections import Counter -%> -
- <% - html = "" - # Get the date from the tag cloud - # Format: /history/?query=year:2011-month:06 to get the - # list of articles of June, 2011. - if query == "all": - html += "

Search with tags cloud

\n" - html += "

Choose a year

\n" - if "year" in query: - the_year = query.split('-')[0].split(':')[1] - if "month" not in query: - html += "

Choose a month for " + the_year + "

\n" - if "month" in query: - the_month = query.split('-')[1].split(':')[1] - html += "

Articles of "+ calendar.month_name[int(the_month)] + ", "+ the_year +".

\n" - - timeline = Counter() - for feed in feeds: - new_feed_section = True - for article in mongo.get_articles(feed["feed_id"]): - - if query == "all": - timeline[article["article_date"].strftime('%Y')] += 1 - - elif query[:4] == "year": - - if article["article_date"].strftime('%Y') == the_year: - timeline[article["article_date"].strftime('%m')] += 1 - - if "month" in query: - if article["article_date"].strftime('%m') == the_month: - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - if article["article_like"] == True: - like = """ """ - else: - like = "" - # Descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - # Title of the article - article_title = article["article_title"] - if len(article_title) >= 80: - article_title = article_title[:80] + " ..." - - if new_feed_section is True: - new_feed_section = False - html += """

%s

\n""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - - html += article["article_date"].strftime("%a %d (%H:%M:%S) ") + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article_title, not_read_end, description) + like + "
\n" - if query == "all": - query_string = "year" - elif "year" in query: - query_string = "year:" + the_year + "-month" - if "month" not in query: - html += '
' + \ - utils.tag_cloud([(elem, timeline[elem]) for elem in timeline.keys()], query_string) + '
' - %> - ${html} \ No newline at end of file diff --git a/source/templates/inactives.html b/source/templates/inactives.html deleted file mode 100644 index 57482b61..00000000 --- a/source/templates/inactives.html +++ /dev/null @@ -1,15 +0,0 @@ -## inactives.html -<%inherit file="base.html"/> -
- %if inactives != []: -
-

Feeds with no recent articles since days:

-
- - %else: -

No inactive feeds.

- %endif diff --git a/source/templates/index.html b/source/templates/index.html deleted file mode 100644 index 43269f0a..00000000 --- a/source/templates/index.html +++ /dev/null @@ -1,107 +0,0 @@ -## index.html -<%inherit file="base.html"/> -<% -import utils -%> -

-
- -
-
- -
- -
-
- <% - html = "" - %> - <% - for feed in feeds: - html += """\n

%s - - - -

\n
""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], \ - feed["feed_link"], feed["feed_image"]) - - # The main page display only 10 articles by feeds. - for article in mongo.get_articles(feed["feed_id"], limit=10): - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - # display a heart for faved articles - if article["article_like"] == True: - like = """ """ - else: - like = "" - - # Descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content.split(' ')[:55]) - else: - description = "No description." - # Title of the article - article_title = article["article_title"] - if len(article_title) >= 80: - article_title = article_title[:80] + " ..." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article_title, not_read_end, description) + like + "
\n" - html += "
\n" - - # some options for the current feed - html += """All articles   """ % (feed["feed_id"],) - html += """Feed summary   """ % (feed["feed_id"],) - html += """

\n""" % (feed["feed_id"],) - if mongo.nb_unread_articles(feed["feed_id"]) != 0: - html += """  Mark all as read""" % (feed["feed_id"],) - html += """     Unread article(s) (%s)""" % (feed["feed_id"], mongo.nb_unread_articles(feed["feed_id"])) - if feed["mail"] == False: - html += """
\nStay tuned""" % (feed["feed_id"],) - else: - html += """
\nStop staying tuned""" % (feed["feed_id"],) - html += """

Top

\n""" - %> - ${html} diff --git a/source/templates/languages.html b/source/templates/languages.html deleted file mode 100644 index d186677d..00000000 --- a/source/templates/languages.html +++ /dev/null @@ -1,25 +0,0 @@ -## languages.html -<%inherit file="base.html"/> -
-

Summary

-
    - %for language in articles_sorted_by_languages.keys(): -
  • ${language}: ${sum(map(len, articles_sorted_by_languages[language].values()))} articles
  • - %endfor -
- %for language in articles_sorted_by_languages.keys(): -
-

${language}

- %for feed_id in articles_sorted_by_languages[language]: - <% - feed = mongo.get_feed(feed_id) - %> -

${feed["feed_title"]}

- %for article in articles_sorted_by_languages[language][feed_id][:10]: - ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"]} -
- %endfor -
- %endfor -
- %endfor \ No newline at end of file diff --git a/source/templates/management.html b/source/templates/management.html deleted file mode 100644 index a2bce1dc..00000000 --- a/source/templates/management.html +++ /dev/null @@ -1,80 +0,0 @@ -## management.html -<%inherit file="base.html"/> -
-

Subscriptions

-
-

- Add a feed: - - -

-
- - %if feeds: -
- Delete the feed: - - -
- %endif - - %if not mail_notification_enabled: -

E-mail notification is disabled in the configuration file.

- %endif - - %if feeds: -
-

Facts

- - %endif - -
- -

Account

-

-

- -
-
-
- -
-

- -
- - -

Database

-

${nb_articles} article(s) are stored in the database with ${nb_unread_articles} unread article(s). - -

- -
-
- -
- -
- -

Export articles

-

-

- - -
-

diff --git a/source/templates/notifications.html b/source/templates/notifications.html deleted file mode 100644 index 88558b05..00000000 --- a/source/templates/notifications.html +++ /dev/null @@ -1,18 +0,0 @@ -## article.html -<%inherit file="base.html"/> -
- %if feeds != []: -

You are receiving e-mails for the following feeds:

- - %else: -

No active notifications.

- %endif -

Notifications are sent to: ${mail_to}. - %if not mail_notification_enabled: - However e-mail notification is disabled in the configuration file. - %endif -

diff --git a/source/templates/plain_text.html b/source/templates/plain_text.html deleted file mode 100644 index 44b7da91..00000000 --- a/source/templates/plain_text.html +++ /dev/null @@ -1,5 +0,0 @@ -## plain_text.html -<%inherit file="base.html"/> -
-

${article_title} from ${feed_title}


- ${description} \ No newline at end of file diff --git a/source/templates/search.html b/source/templates/search.html deleted file mode 100644 index da766ee9..00000000 --- a/source/templates/search.html +++ /dev/null @@ -1,53 +0,0 @@ -## search.html -<%inherit file="base.html"/> -<% -import utils -%> -
-%if len(search_result) != 0: -

Articles containing the string ${query} (${sum([articles.count() for articles in search_result.values()])} results)

-%else: -

String ${query} not found.

-%endif -<% - html = "" - feed_id = None -%> - -%for feed_id in search_result.keys(): - <% - new_feed_section = True - feed = mongo.get_feed(feed_id) - print(search_result[feed["feed_id"]].count()) - for article in search_result[feed["feed_id"]]: - if new_feed_section is True: - new_feed_section = False - html += """

%s

\n""" % \ - (feed["feed_id"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - # display a heart for faved articles - if article["article_like"] == True: - like = """ """ - else: - like = "" - - # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - description = " ".join(article_content[:500].split(' ')[:-1]) - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article["article_title"][:150], not_read_end, description) + like + "
\n" - %> -%endfor - -${html} \ No newline at end of file diff --git a/source/templates/statistics.html b/source/templates/statistics.html deleted file mode 100644 index 5dfcbfa8..00000000 --- a/source/templates/statistics.html +++ /dev/null @@ -1,14 +0,0 @@ -## statistics.html -<%inherit file="base.html"/> -
- %if articles: -

Statistics

-

Tag cloud

-
- Minimum size of a word: - -
-
- ${tag_cloud} -
- %endif \ No newline at end of file diff --git a/source/templates/unread.html b/source/templates/unread.html deleted file mode 100644 index d37d3034..00000000 --- a/source/templates/unread.html +++ /dev/null @@ -1,76 +0,0 @@ -## unread.html -<%inherit file="base.html"/> -<% -import utils -%> -
- <% - html = "" - if mongo.nb_unread_articles() != 0: - - # List unread articles of all the database - if feed_id == "": - html += "

Unread article(s)

" - html += """\n
\nMark articles as read\n
\n""" - for feed in feeds: - new_feed_section = True - nb_unread = 0 - - # For all unread article of the current feed. - for article in mongo.get_articles(feed["feed_id"], condition=("article_readed", False)): - nb_unread += 1 - if new_feed_section is True: - new_feed_section = False - html += """

%s

\n""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - - # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s
\n""" % \ - (feed["feed_id"], article["article_id"], article["article_title"][:150], description) - - if nb_unread == mongo.nb_unread_articles(feed["feed_id"]): - html += """
\nMark all articles from this feed as read\n""" % \ - (feed["feed_id"],) - html += """
\nMark articles as read\n""" - - - # List unread articles of a feed - else: - try: - feed = mongo.get_feed(feed_id) - except: - return "

This feed do not exists.

" - html += """

Unread article(s) of the feed %s

-
""" % (feed_id, feed["feed_title"]) - - # For all unread article of the feed. - for article in mongo.get_articles(feed_id, condition=("article_readed", False)): - # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s
\n""" % \ - (feed_id, article["article_id"], article["article_title"][:150], description) - - html += """
\nMark all as read""" % (feed_id,) - # No unread article - else: - html += '

No unread article(s)

\n
\nWhy not check for news?' - html += """\n

All feeds

""" - %> - ${html} \ No newline at end of file -- cgit