Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33D3E1042C for ; Wed, 12 Feb 2014 21:08:03 +0000 (UTC) Received: (qmail 63736 invoked by uid 500); 12 Feb 2014 21:08:02 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 63713 invoked by uid 500); 12 Feb 2014 21:08:00 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 63667 invoked by uid 99); 12 Feb 2014 21:07:57 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Feb 2014 21:07:57 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 06C77826C6D; Wed, 12 Feb 2014 21:07:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Message-Id: <33add8fc050447bfb3ee415a3925cabf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [#7097] Changes for new User Profile Date: Wed, 12 Feb 2014 21:07:57 +0000 (UTC) Updated Branches: refs/heads/cj/7097 b7ae92e92 -> fdbc326a0 (forced update) [#7097] Changes for new User Profile Signed-off-by: Cory Johns Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/fdbc326a Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/fdbc326a Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/fdbc326a Branch: refs/heads/cj/7097 Commit: fdbc326a0bd3671e068c1664da255dae22288b18 Parents: 6d61d30 Author: Cory Johns Authored: Wed Feb 12 04:01:38 2014 +0000 Committer: Cory Johns Committed: Wed Feb 12 21:07:45 2014 +0000 ---------------------------------------------------------------------- .../templates/sections/personal-data.html | 2 +- .../templates/sections/projects.html | 2 ++ .../ext/user_profile/templates/user_index.html | 23 +++++++++----------- Allura/allura/model/auth.py | 2 +- Allura/allura/model/project.py | 5 ++++- .../allura/templates/jinja_master/master.html | 2 ++ .../templates/widgets/profile_section.html | 2 +- 7 files changed, 21 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/Allura/allura/ext/user_profile/templates/sections/personal-data.html ---------------------------------------------------------------------- diff --git a/Allura/allura/ext/user_profile/templates/sections/personal-data.html b/Allura/allura/ext/user_profile/templates/sections/personal-data.html index 94b0421..81ad62c 100644 --- a/Allura/allura/ext/user_profile/templates/sections/personal-data.html +++ b/Allura/allura/ext/user_profile/templates/sections/personal-data.html @@ -52,7 +52,7 @@
Web Site{% if user.get_pref('webpages')|length > 1 %}s{% endif %}:
{{user.get_pref('webpages')|filter|map('urlize', 20, true)|join(', ')}}
-
Availability:
+
Availability (UTC):
    {% for slot in user.get_localized_availability('utc') %}
  1. {{ slot.week_day }}: {{ slot.start_time.strftime('%H:%M') }} to {{ slot.end_time.strftime('%H:%M') }}
  2. http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/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 4fc5eda..3f517de 100644 --- a/Allura/allura/ext/user_profile/templates/sections/projects.html +++ b/Allura/allura/ext/user_profile/templates/sections/projects.html @@ -33,6 +33,7 @@ {% block content %}
      {% for project in user.my_projects() %} + {% if project != c.project and not project.is_nbhd_project %}
    • {% if project.icon -%} Project Logo @@ -44,6 +45,7 @@ {{project.summary}}
    • + {% endif %} {% endfor %}
    {% endblock %} http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/Allura/allura/ext/user_profile/templates/user_index.html ---------------------------------------------------------------------- diff --git a/Allura/allura/ext/user_profile/templates/user_index.html b/Allura/allura/ext/user_profile/templates/user_index.html index 30e4ea3..dea696a 100644 --- a/Allura/allura/ext/user_profile/templates/user_index.html +++ b/Allura/allura/ext/user_profile/templates/user_index.html @@ -32,23 +32,20 @@ {% endblock %} -{% block nav_menu %}{{super()}}{% endblock %} +{% block nav_menu %} + {% if user != c.user %} + + + Send Message + + {% endif %} + {{super()}} +{% endblock %} {% block top_nav %}{# disabled #}{% endblock %} -{% block content %} +{% block content_base %} {% for section in sections %} {{ section.display() }} {% endfor %} {% endblock %} - -{% block extra_js %} - -{% endblock %} http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/Allura/allura/model/auth.py ---------------------------------------------------------------------- diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py index 542b1f6..7014e2e 100644 --- a/Allura/allura/model/auth.py +++ b/Allura/allura/model/auth.py @@ -513,7 +513,7 @@ class User(MappedClass, ActivityNode, ActivityObject): week_day = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] avail = self.get_availability_timeslots() - usertimezone = timezone(self.get_pref('timezone')) + usertimezone = timezone(self.get_pref('timezone') or 'UTC') chosentimezone = timezone(tz_name) retlist = [] for t in avail: http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/Allura/allura/model/project.py ---------------------------------------------------------------------- diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py index eaec993..96bbf67 100644 --- a/Allura/allura/model/project.py +++ b/Allura/allura/model/project.py @@ -745,7 +745,10 @@ class Project(MappedClass, ActivityNode, ActivityObject): MappedClass.delete(self) def breadcrumbs(self): - entry = (self.name, self.url()) + if self.is_user_project: + entry = (self.user_project_of.display_name, self.url()) + else: + entry = (self.name, self.url()) if self.parent_project: return self.parent_project.breadcrumbs() + [entry] else: http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/Allura/allura/templates/jinja_master/master.html ---------------------------------------------------------------------- diff --git a/Allura/allura/templates/jinja_master/master.html b/Allura/allura/templates/jinja_master/master.html index dd9c313..0c4d188 100644 --- a/Allura/allura/templates/jinja_master/master.html +++ b/Allura/allura/templates/jinja_master/master.html @@ -99,6 +99,7 @@ {% endblock %}
    + {% block content_base %} {% if not hide_left_bar %} {% block sidebar_menu %} {% include g.theme.sidebar_menu %} @@ -132,6 +133,7 @@ {% endif %} {% block after_content %}{% endblock %}
    + {% endblock %} {{theme_macros.footer(g.year(), g.theme_href(''))}} http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdbc326a/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 5f2230e..28ba645 100644 --- a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html +++ b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html @@ -31,7 +31,7 @@ {% endblock %} -{% block section_class %}user-activity{% endblock %} +{% block section_class %}activity{% endblock %} {% block content %} {% if not timeline %}