Revision 7549d16f

b/snf-astakos-app/astakos/im/templates/im/base.html
1
{% load astakos_tags branding_tags %}<!doctype html>
1
{% load astakos_tags %}<!doctype html>
2 2
<html>
3 3
<head>
4 4
  {% block starthead %}{% endblock starthead %}
b/snf-astakos-app/astakos/im/templates/im/landing.html
1
{% extends "im/account_base.html" %}
2

  
3
{% load filters %}
4
{% block page.title %}Overview{% endblock %}
5

  
6
{% block page.body %}
7
<div class="landing-page">
8
	
9
	<div class="two-cols clearfix dotted pithos">
10
		<div class="rt">
11
    		<a href="/pithos/ui/"><img class="pic" src="{{ IM_STATIC_URL }}images/landing-pithos.png" /></a>
12
		</div>
13
		<div class="lt">
14
			<a href="/pithos/ui/">Pithos</a> is the File Storage service. Click to start
15
uploading and managing your files on the cloud.
16

  
17
		</div>
18
	</div>
19
	<div class="two-cols clearfix dotted cyclades">
20
		<div class="rt">
21
  			<a href="/ui/"><img class="pic" src="{{ IM_STATIC_URL }}images/landing-cyclades.png" /></a>
22
		</div>
23
		<div class="lt">
24
			<a href="/ui/">Cyclades</a> is the Compute and Network Service. Click to start
25
creating Virtual Machines and connect them to arbitrary Networks.
26

  
27
		</div>
28
	</div>
29
	<div class="two-cols clearfix dotted dashboard">
30
		<div class="rt">
31
    		<a href="{% url astakos.im.views.edit_profile %}"><img class="pic" src="{{ IM_STATIC_URL }}images/landing-dashboard.png" /></a>
32
		</div>
33
		<div class="lt">
34
			Access the <a href="{% url astakos.im.views.edit_profile %}">dashboard</a> from
35
the top right corner of your screen. Here you can manage your profile, see the usage of your resources
36
and manage projects to share virtual resources with colleagues.
37

  
38
		</div>
39
	</div>
40
	<div class="two-cols clearfix dotted cms">
41
		<div class="rt">
42
    		<a href=""><img class="pic" src="{{ IM_STATIC_URL }}images/landing-cms.png" /></a>
43
		</div>
44
		<div class="lt">
45
			Click on the top left logo icon, to go back to the homepage.
46
 
47
		</div>
48
	</div>
49
</div>
50
<script type="text/javascript">
51
	$(document).ready(function() {
52
		$('body').append('<div id="hand">&nbsp;</div>');
53
	});
54
</script>	
55
{% endblock %}
1
{% extends "im/landing_base.html" %}
b/snf-astakos-app/astakos/im/templates/im/landing_base.html
1
{% extends "im/account_base.html" %}
2

  
3
{% load filters %}
4
{% block page.title %}Overview{% endblock %}
5

  
6
{% block page.body %}
7
<div class="landing-page">
8
	{% block content%}
9
		{% for service in services %}
10
			<div class="two-cols clearfix dotted">
11
				<div class="rt">
12
					<a href="{{ service.url }}">
13
						<img class="pic" src="{{ service.landing_image }}" />
14
					</a>
15
				</div>
16
				<div class="lt">
17
					<h2>{{ service.name }}</h2>
18
					{{ service.description }}
19
				</div>
20
			</div>
21
		{% endfor %}
22
	{% endblock content %}
23
	 
24
</div>	
25
	 
26
{% endblock %}
b/snf-astakos-app/astakos/im/templates/im/projects/intro_base.html
3 3
{% block intro_top %}{% endblock intro_top %}
4 4

  
5 5
<div class="widjets"> 
6
  <!--<a href="#" class="widjet-x" title="remove boxes">X</a>-->
6
  
7 7
  <ul class="clearfix"> 
8 8
    <li class="create">
9 9
    <div>
b/snf-astakos-app/astakos/im/views.py
1584 1584

  
1585 1585

  
1586 1586
def landing(request):
1587
    services = get_services_dict()
1587 1588
    return render_response(
1588 1589
        'im/landing.html',
1590
        services = services,
1589 1591
        context_instance=get_context(request))
1590 1592

  
1591

  
1592 1593
def api_access(request):
1593 1594
    return render_response(
1594 1595
        'im/api_access.html',
/dev/null
1
# Copyright 2011 GRNET S.A. All rights reserved.
2
#
3
# Redistribution and use in source and binary forms, with or
4
# without modification, are permitted provided that the following
5
# conditions are met:
6
#
7
#   1. Redistributions of source code must retain the above
8
#      copyright notice, this list of conditions and the following
9
#      disclaimer.
10
#
11
#   2. Redistributions in binary form must reproduce the above
12
#      copyright notice, this list of conditions and the following
13
#      disclaimer in the documentation and/or other materials
14
#      provided with the distribution.
15
#
16
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
# POSSIBILITY OF SUCH DAMAGE.
28
#
29
# The views and conclusions contained in the software and
30
# documentation are those of the authors and should not be
31
# interpreted as representing official policies, either expressed
32
# or implied, of GRNET S.A.
33

  
34
 
35
from django import template
36
from synnefo_branding import settings, utils
37
 
38
register = template.Library()
39

  
40
@register.simple_tag
41
def get_branding_image_url(image_name):
42

  
43
    # kpap: edw kati den paei kala, evala to MEDIA_URL kai sto settings pali
44
    media_path = settings.IMAGE_MEDIA_URL
45
    # pontio alla pws alliws na to ekana?
46
    image = image_name.split('.')[0]
47
    dct = utils.get_branding_dict()
48
    branding_image_url = media_path+image_name
49

  
50
    for key, value in dct.iteritems(): 
51
        if key.startswith(image):
52
            if dct[key]!= '':
53
                branding_image_url = dct[key]
54

  
55
    return branding_image_url
b/snf-cyclades-app/synnefo/ui/static/generic_info_tpl.html
1
{% load branding_tags %}
2

  
3 1
<!doctype html>
4 2
<html> 
5 3
<head> 
b/snf-cyclades-app/synnefo/ui/static/service_unavailable.html
1
{% load branding_tags %}
2

  
3 1
<!doctype html>
4 2
<html> 
5 3
<head> 
b/snf-cyclades-app/synnefo/ui/templates/home.html
1
{% load branding_tags %}
2 1
<!doctype html>
3 2
<html>
4 3

  
b/snf-cyclades-app/synnefo/ui/templates/machines_console.html
32 32
interpreted as representing official policies, either expressed
33 33
or implied, of GRNET S.A.
34 34
-->
35
{% load branding_tags %}
36 35
{% load i18n %}
37 36

  
38 37
<html>

Also available in: Unified diff