incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/3] git commit: [#7097] Switch user project name to summary for better tagline implementation
Date Thu, 13 Feb 2014 23:19:46 GMT
Updated Branches:
  refs/heads/cj/7097 cab098a1b -> 1c10ec496


[#7097] Switch user project name to summary for better tagline implementation

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

Branch: refs/heads/cj/7097
Commit: 55ff78b6fe21764885da9c7ab044490fca134f24
Parents: cab098a
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Thu Feb 13 21:31:47 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Thu Feb 13 21:31:57 2014 +0000

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py                            | 2 +-
 .../allura/ext/admin/templates/admin_widgets/metadata_admin.html | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/55ff78b6/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index 0c79fea..e19572b 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -386,7 +386,7 @@ class ProjectAdminController(BaseController):
             plugin.ProjectRegistrationProvider.get().undelete_project(
                 c.project, c.user)
             redirect('overview')
-        if name != c.project.name:
+        if name and name != c.project.name:
             h.log_action(log, 'change project name').info('')
             M.AuditLog.log('change project name to %s', name)
             c.project.name = name

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/55ff78b6/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html b/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html
index 16b303b..f894be5 100644
--- a/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html
+++ b/Allura/allura/ext/admin/templates/admin_widgets/metadata_admin.html
@@ -19,10 +19,10 @@
 {% import 'allura:templates/jinja_master/lib.html' as lib with context %}
 <form method="POST" action="update" enctype="multipart/form-data" id="metadata_form">
   <div class="grid-9">
+    {%if not c.project.is_user_project %}
     {{ widget.display_label(widget.fields.name) }}
     <br>
     {{widget.display_field(widget.fields.name) }}
-    {%if c.project.neighborhood.name != 'Users'%}
     <label for="shortname">Unixname</label>
     <br>
     <input id="shortname" type="text" disabled="disabled"
@@ -35,12 +35,14 @@
     {{ widget.display_label(widget.fields.video_url) }}
     <br>
     {{widget.display_field(widget.fields.video_url) }}
+    {% endif %}
 
     {{ widget.display_label(widget.fields.summary) }}
     <br>
     {{widget.display_field(widget.fields.summary) }}
     <br>
 
+    {%if not c.project.is_user_project %}
     {{ widget.display_label(widget.fields.short_description) }}
     <br>
     {{widget.display_field(widget.fields.short_description) }}


Mime
View raw message