allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [11/12] allura git commit: [#3593] insert pre-step
Date Tue, 12 Jul 2016 14:04:36 GMT
[#3593] insert pre-step


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

Branch: refs/heads/db/3593
Commit: 12bfd1ef403f6819c75a7ac27e7adb39eee58856
Parents: 3ac1102
Author: Dave Brondsema <dave@brondsema.net>
Authored: Mon Jul 11 17:15:25 2016 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Tue Jul 12 10:03:12 2016 -0400

----------------------------------------------------------------------
 Allura/allura/controllers/project.py                 |  4 +---
 Allura/allura/ext/admin/templates/project_admin.html | 11 ++++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/12bfd1ef/Allura/allura/controllers/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index 9d24dac..5e9a510 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -236,9 +236,7 @@ class NeighborhoodController(object):
                 if (tool.lower() not in anchored_tools.keys()) and (c.project.app_instance(tool)
is None):
                     install_params.append(dict(ep_name=tool, ordinal=i + offset))
             c.project.install_apps(install_params)
-        flash('Welcome to your new project on %s!'
-              'To get started, fill out some information about your project.' % config['site_name'])
-        redirect(c.project.script_name + 'admin/')
+        redirect(c.project.script_name + 'admin/?first-visit')
 
     @expose()
     def icon(self, **kw):

http://git-wip-us.apache.org/repos/asf/allura/blob/12bfd1ef/Allura/allura/ext/admin/templates/project_admin.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/templates/project_admin.html b/Allura/allura/ext/admin/templates/project_admin.html
index 2d42a68..1a55c48 100644
--- a/Allura/allura/ext/admin/templates/project_admin.html
+++ b/Allura/allura/ext/admin/templates/project_admin.html
@@ -23,7 +23,7 @@
 
 {% block title %}{{c.project.name}} / Admin Welcome{% endblock %}
 
-{% block header %}Welcome to your {{config.site_name}} project!{% endblock %}
+{% block header %}Welcome to your {{config.site_name}} project!<span class="title-end"></span>{%
endblock %}
 
 {% set tour = {
     "id": "admin-welcome",
@@ -69,6 +69,15 @@
         },
     ]
 } %}
+{% if 'first-visit' in request.params %}
+    {% do tour['steps'].insert(0, {
+        "title": "Welcome to your new project!",
+        "content": "Here's a quick tour to show you around.",
+        "target": "h2.title .title-end",
+        "placement": "right",
+        "yOffset": -26,
+    }) %}
+{% endif %}
 
 
 {% block content %}


Mime
View raw message