summaryrefslogtreecommitdiff
path: root/openstack-dashboard/dashboard/templates/index.html
blob: 14820687a70211ddb448040a248dcb1cecf2ea94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% extends "base.html" %}
{% load django_nova_tags %}

{% block headercss %}
{% endblock %}
{% block pageclass %}home{% endblock %}

{% block title %} - Cloud Computing{% endblock %}

{% block content %}
  <div id="page_head">
    <h2>Welcome to the {% site_branding %} Dashboard</h2>
    <p>Through the {% site_branding %} Dashboard you can manage your cloud
      through a crisp, clean, and easy to use interface.
      {% if not request.user.is_authenticated%}To get started
      <a href="{% url registration_register %}">register</a> or sign in below.{% endif %}
    </p>
  </div>

  {% if request.user.is_authenticated %}
  <div id="projects" class="block">
    <h3>Your Projects</h3>
    <ul>
      {% for project in projects %}
      <li class="project {% cycle 'odd' 'even' %}">
        <a id="lnk_project_{{ project.projectname }}" href="{% url nova_project project.projectname %}">
          {{ project.projectname|capfirst }}
          <span class="data">{{ project.description|capfirst }}</span>
        </a>
      </li>
      {% endfor %}
    </ul>
  </div>

  <div class="home_block">
    <h3>OpenStack Resources</h3>
    <ul>
      <li><a href="http://openstack.org" target="_blank">OpenStack.org</a></li>
      <li><a href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">OpenStack Dashboard Wiki</a></li>
      <li><a href="https://launchpad.net/openstack-dashboard" target="_blank">OpenStack Dashboard Launchpad Repository</a></li>
    </ul>
  </div>

  {% else %}
    <div id="home_login" class="block">
      <h3>Sign In</h3>
      <form action="{% url auth_login %}" method="post">
        {% csrf_token %}
        <fieldset>
          {% if form.errors %}
          <p class="error">Your username and password didn't match. Please try again.</p>
          {% endif %}
          <label for="username">Username:</label><input id="username" type="text" name="username" />
          <label for="password">Password:</label><input id="password" type="password" name="password" />
          <input type="hidden" name="next" value="/" />
          <div class="button">
            <input id="home_login_btn" type="submit" value="Sign In">
            <span id="forgot_password"><a id="forgot_password_link" href="{% url auth_password_reset %}">Forgot Password?</a></span>
          </div>
        </fieldset>
      </form>
    </div>
    {% if not request.user.is_authenticated %}
      <div class="home_block">
        <h3>Don't have an account? <a id="lnk_register" href="{% url registration_register %}">Register</a></h3>
      </div>
    {% endif %}
    <div class="home_block">
      <h3>OpenStack Resources</h3>
      <ul>
        <li><a href="http://openstack.org" target="_blank">OpenStack.org</a></li>
        <li><a href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">OpenStack Dashboard Wiki</a></li>
        <li><a href="https://launchpad.net/openstack-dashboard" target="_blank">OpenStack Dashboard Launchpad Repository</a></li>
      </ul>
    </div>
  {% endif %}
{% endblock %}