incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#4395] Add feed action to activity stream page & widget
Date Thu, 23 Jan 2014 16:44:51 GMT
Updated Branches:
  refs/heads/cj/4395 [created] 5870b080e


[#4395] Add feed action to activity stream page & widget

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/5870b080
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5870b080
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5870b080

Branch: refs/heads/cj/4395
Commit: 5870b080e372bf5d3612df52fadc9c4e4571f4f3
Parents: 88b2500
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Thu Jan 23 16:30:15 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Thu Jan 23 16:44:25 2014 +0000

----------------------------------------------------------------------
 Allura/allura/ext/user_profile/user_main.py                        | 2 +-
 Allura/allura/nf/allura/css/site_style.css                         | 1 +
 ForgeActivity/forgeactivity/templates/index.html                   | 1 +
 ForgeActivity/forgeactivity/templates/widgets/profile_section.html | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5870b080/Allura/allura/ext/user_profile/user_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/user_profile/user_main.py b/Allura/allura/ext/user_profile/user_main.py
index a9758e1..52c9985 100644
--- a/Allura/allura/ext/user_profile/user_main.py
+++ b/Allura/allura/ext/user_profile/user_main.py
@@ -255,5 +255,5 @@ class ProfileSectionBase(object):
         if not self.check_display():
             return ''
         tmpl = g.jinja2_env.get_template(self.template)
-        context = self.prepare_context({'h': h, 'c': c})
+        context = self.prepare_context({'h': h, 'c': c, 'g': g})
         return Markup(tmpl.render(context))

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5870b080/Allura/allura/nf/allura/css/site_style.css
----------------------------------------------------------------------
diff --git a/Allura/allura/nf/allura/css/site_style.css b/Allura/allura/nf/allura/css/site_style.css
index 6c6ff02..94f5d09 100644
--- a/Allura/allura/nf/allura/css/site_style.css
+++ b/Allura/allura/nf/allura/css/site_style.css
@@ -3261,6 +3261,7 @@ ul.dropdown ul li a:hover {
 }
 .user-activity h3 a {
     float: right;
+    margin-left: 8px;
 }
 .user-activity h3 b.ico {
     background-image: url('../images/neo-icon-set-ffffff-256x350.png');

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5870b080/ForgeActivity/forgeactivity/templates/index.html
----------------------------------------------------------------------
diff --git a/ForgeActivity/forgeactivity/templates/index.html b/ForgeActivity/forgeactivity/templates/index.html
index 435fc82..8979ac7 100644
--- a/ForgeActivity/forgeactivity/templates/index.html
+++ b/ForgeActivity/forgeactivity/templates/index.html
@@ -32,6 +32,7 @@
 {% endblock %}
 
 {% block actions %}
+    <a href="feed.rss" title="RSS"><b data-icon="{{g.icons['feed'].char}}" class="ico
{{g.icons['feed'].css}}" title="Feed"></b></a>
     {% if c.user and c.user != c.user.anonymous() and followee != c.user %}
         {{c.follow_toggle.display(following=following)}}
     {% endif %}

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5870b080/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
----------------------------------------------------------------------
diff --git a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
index a9e473f..4e1bec2 100644
--- a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
+++ b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
@@ -26,6 +26,7 @@
         {% if c.user and not c.user.is_anonymous() and c.user != user %}
             {{follow_toggle.display(following=following, action=activity_app.url+'follow')}}
         {% endif %}
+        <a href="feed.rss" title="RSS"><b data-icon="{{g.icons['feed'].char}}" class="ico
{{g.icons['feed'].css}}" title="Feed"></b></a>
     </h3>
     {% if not timeline %}
         <p class="empty">No activity to display.</p>


Mime
View raw message