incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [4/4] git commit: [#7204] Show project last-updated on user profile
Date Tue, 04 Mar 2014 16:47:26 GMT
[#7204] Show project last-updated on user profile

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/3d9031a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3d9031a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3d9031a3

Branch: refs/heads/master
Commit: 3d9031a3910c3c1eca58363e9a23e5b21efc7a4d
Parents: cb68a87
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon Mar 3 16:26:13 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Mar 4 16:46:57 2014 +0000

----------------------------------------------------------------------
 .../allura/ext/user_profile/templates/sections/projects.html   | 6 ++++++
 Allura/allura/nf/allura/css/site_style.css                     | 6 ++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3d9031a3/Allura/allura/ext/user_profile/templates/sections/projects.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/user_profile/templates/sections/projects.html b/Allura/allura/ext/user_profile/templates/sections/projects.html
index 4f9fbc2..2b7d1a2 100644
--- a/Allura/allura/ext/user_profile/templates/sections/projects.html
+++ b/Allura/allura/ext/user_profile/templates/sections/projects.html
@@ -43,6 +43,12 @@
                 <a href="{{project.url()}}">{{project.name}}</a>
                 {{project.summary}}
             </span>
+            <span class="project-last-updated">
+                Last Updated:
+                <time datetime="{{project.last_updated}}" title="{{project.last_updated}}">
+                    {{h.ago(project.last_updated)}}
+                </time>
+            </span>
         </li>
     {% else %}
         <li class="empty">No projects to display.</li>

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3d9031a3/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 b83a43c..9827e84 100644
--- a/Allura/allura/nf/allura/css/site_style.css
+++ b/Allura/allura/nf/allura/css/site_style.css
@@ -3385,6 +3385,12 @@ ul.dropdown ul li a:hover {
   content: '\A';
   white-space: pre;
 }
+.profile-section.projects ul .project-last-updated {
+  display: block;
+  text-align: right;
+  font-style: italic;
+  font-size: 10px;
+}
 .profile-section.projects .show-more-projects {
       text-align: center;
 }


Mime
View raw message