You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/04/19 20:45:21 UTC

[airavata-django-portal] branch master updated: Integrating Group Resource Profile dashboard

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ad3bd1  Integrating Group Resource Profile dashboard
0ad3bd1 is described below

commit 0ad3bd139a6de602eeb685c66ccb9658ad86f6f3
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Thu Apr 19 16:45:12 2018 -0400

    Integrating Group Resource Profile dashboard
---
 django_airavata/apps/admin/templates/admin/admin_base.html        | 3 +++
 .../apps/admin/templates/admin/group_resource_profile.html        | 8 ++++++++
 django_airavata/apps/admin/urls.py                                | 1 +
 django_airavata/apps/admin/views.py                               | 5 +++++
 4 files changed, 17 insertions(+)

diff --git a/django_airavata/apps/admin/templates/admin/admin_base.html b/django_airavata/apps/admin/templates/admin/admin_base.html
index ea1c258..96dec35 100644
--- a/django_airavata/apps/admin/templates/admin/admin_base.html
+++ b/django_airavata/apps/admin/templates/admin/admin_base.html
@@ -15,6 +15,9 @@
         <a href="{% url 'django_airavata_admin:credential_store' %}" class="c-nav__item {% if request.active_nav_item == 'credential_store' %}is-active{% endif %}" data-toggle=tooltip data-placement=right title="Credential Store">
             <i class="fa fa-lock"></i> <span class=sr-only>Credential Store</span>
         </a>
+        <a href="{% url 'django_airavata_admin:group_resource_profile' %}" class="c-nav__item {% if request.active_nav_item == 'group_resource_profile' %}is-active{% endif %}" data-toggle=tooltip data-placement=right title="Group Resouce Profile">
+            <i class="fa fa-server"></i> <span class=sr-only>Group Resource Profile</span>
+        </a>
 {% endblock %}
 {% block scripts %}
     {{ block.super }}
diff --git a/django_airavata/apps/admin/templates/admin/group_resource_profile.html b/django_airavata/apps/admin/templates/admin/group_resource_profile.html
new file mode 100644
index 0000000..31594b5
--- /dev/null
+++ b/django_airavata/apps/admin/templates/admin/group_resource_profile.html
@@ -0,0 +1,8 @@
+{% extends "admin/admin_base.html"%}
+{% load static %}
+{% block scripts %}
+   <script>
+    window.airavataDashboardName='group_resource_preference_dashboard'
+   </script>
+    {{ block.super }}
+{% endblock %}
diff --git a/django_airavata/apps/admin/urls.py b/django_airavata/apps/admin/urls.py
index ffe7acf..b87bd53 100644
--- a/django_airavata/apps/admin/urls.py
+++ b/django_airavata/apps/admin/urls.py
@@ -7,4 +7,5 @@ urlpatterns = [
     url(r'^$', views.app_catalog, name='home'),
     url(r'^app_catalog/$', views.app_catalog, name='app_catalog'),
     url(r'^credential_store$', views.credential_store, name='credential_store'),
+    url(r'^group_resource_profile$', views.group_resource_profile, name='group_resource_profile'),
 ]
diff --git a/django_airavata/apps/admin/views.py b/django_airavata/apps/admin/views.py
index 7ad318e..4cd513b 100644
--- a/django_airavata/apps/admin/views.py
+++ b/django_airavata/apps/admin/views.py
@@ -18,3 +18,8 @@ def credential_store(request):
 @login_required
 def compute_resource(request):
     return render(request, 'admin/compute_resource.html')
+
+@login_required
+def group_resource_profile(request):
+    request.active_nav_item = 'group_resource_profile'
+    return render(request, 'admin/group_resource_profile.html')

-- 
To stop receiving notification emails like this one, please contact
machristie@apache.org.