incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [6/7] git commit: [#7204] Show project last-updated on user profile
Date Tue, 04 Mar 2014 16:17:21 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/9cc7b0e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9cc7b0e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9cc7b0e3

Branch: refs/heads/cj/7204
Commit: 9cc7b0e3a710b203c4f44abca74513b11bf65ddb
Parents: e218270
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon Mar 3 16:26:13 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Mar 4 15:54:26 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/9cc7b0e3/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/9cc7b0e3/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