Created .po translation file for login.html, signup.html, reset_password.html, confirm_reset_password.html, base_short.html, order_detail.html. Created .po translation file for orders.html, virtual_machine_detail.html, virtual_machines. created .po translation file for virtual_machine_key.html, notifications.html

This commit is contained in:
Levi 2016-07-18 21:24:44 -05:00
parent e05c7bbf46
commit d7f7d498f5
12 changed files with 470 additions and 100 deletions

View file

@ -0,0 +1,359 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-07-17 11:34-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: templates/emails/password_reset_email.html:2
#: templates/emails/password_reset_email.txt:2
#, python-format
msgid ""
"You're receiving this email because you requested a password reset for your "
"user account at %(site_name)s."
msgstr ""
#: templates/emails/password_reset_email.html:4
#: templates/emails/password_reset_email.txt:4
msgid "Please go to the following page and choose a new password:"
msgstr ""
#: templates/emails/password_reset_email.html:9
#: templates/emails/password_reset_email.txt:9
msgid "Thanks for using our site!"
msgstr ""
#: templates/emails/password_reset_email.html:11
#: templates/emails/password_reset_email.txt:11
#, python-format
msgid "The %(site_name)s team"
msgstr ""
#: templates/hosting/base_short.html:67
msgid "My Virtual Machines"
msgstr ""
#: templates/hosting/base_short.html:72 templates/hosting/orders.html.py:12
msgid "My Orders"
msgstr ""
#: templates/hosting/base_short.html:77
msgid "Notifications "
msgstr ""
#: templates/hosting/base_short.html:84
msgid "Logout"
msgstr ""
#: templates/hosting/base_short.html:89 templates/hosting/base_short.html:131
msgid "How it works"
msgstr ""
#: templates/hosting/base_short.html:92 templates/hosting/base_short.html:134
msgid "Your infrastructure"
msgstr ""
#: templates/hosting/base_short.html:95 templates/hosting/base_short.html:137
msgid "Our inftrastructure"
msgstr ""
#: templates/hosting/base_short.html:98 templates/hosting/base_short.html:140
msgid "Pricing"
msgstr ""
#: templates/hosting/base_short.html:101 templates/hosting/base_short.html:144
msgid "Contact"
msgstr ""
#: templates/hosting/base_short.html:104 templates/hosting/login.html.py:29
#: templates/hosting/login.html:38 templates/hosting/reset_password.html:24
#: templates/hosting/signup.html:24
msgid "Login"
msgstr ""
#: templates/hosting/base_short.html:127
msgid "Home"
msgstr ""
#: templates/hosting/confirm_reset_password.html:19
msgid "Set your new password"
msgstr ""
#: templates/hosting/confirm_reset_password.html:28
#: templates/hosting/reset_password.html:20
msgid "Reset"
msgstr ""
#: templates/hosting/confirm_reset_password.html:32
#: templates/hosting/reset_password.html:24 templates/hosting/signup.html:24
msgid "Already have an account ?"
msgstr ""
#: templates/hosting/confirm_reset_password.html:32
msgid "Log in"
msgstr ""
#: templates/hosting/login.html:22
msgid "You haven been logged out"
msgstr ""
#: templates/hosting/login.html:42
msgid "Don't have an account yet ? "
msgstr ""
#: templates/hosting/login.html:42 templates/hosting/signup.html.py:11
#: templates/hosting/signup.html:20
msgid "Sign up"
msgstr ""
#: templates/hosting/login.html:44
msgid "Forgot your password ? "
msgstr ""
#: templates/hosting/notifications.html:9
msgid "Notifications"
msgstr ""
#: templates/hosting/notifications.html:16
msgid "Unread"
msgstr ""
#: templates/hosting/notifications.html:26
msgid "All"
msgstr ""
#: templates/hosting/notifications.html:38
msgid "Unread notifications"
msgstr ""
#: templates/hosting/notifications.html:48
msgid "Mark as read"
msgstr ""
#: templates/hosting/notifications.html:59
msgid "All notifications"
msgstr ""
#: templates/hosting/order_detail.html:10
msgid "Invoice"
msgstr ""
#: templates/hosting/order_detail.html:10
msgid "Order #"
msgstr ""
#: templates/hosting/order_detail.html:16
#: templates/hosting/order_detail.html:24
msgid "Billed To:"
msgstr ""
#: templates/hosting/order_detail.html:26
msgid "Status:"
msgstr ""
#: templates/hosting/order_detail.html:38
msgid "Payment Method:"
msgstr ""
#: templates/hosting/order_detail.html:49
msgid "Order summary"
msgstr ""
#: templates/hosting/order_detail.html:52
msgid "Type"
msgstr ""
#: templates/hosting/order_detail.html:54
#: templates/hosting/virtual_machine_detail.html:96
msgid "Configuration"
msgstr ""
#: templates/hosting/order_detail.html:56
#: templates/hosting/virtual_machine_detail.html:75
msgid "Cores"
msgstr ""
#: templates/hosting/order_detail.html:58
#: templates/hosting/virtual_machine_detail.html:81
msgid "Memory"
msgstr ""
#: templates/hosting/order_detail.html:60
msgid "Disk space"
msgstr ""
#: templates/hosting/order_detail.html:62
msgid "Total"
msgstr ""
#: templates/hosting/order_detail.html:68
msgid "Finish Configuration"
msgstr ""
#: templates/hosting/orders.html:17
#: templates/hosting/virtual_machine_detail.html:121
msgid "Date"
msgstr ""
#: templates/hosting/orders.html:18
#: templates/hosting/virtual_machine_detail.html:122
#: templates/hosting/virtual_machines.html:15
msgid "Amount"
msgstr ""
#: templates/hosting/orders.html:19
#: templates/hosting/virtual_machine_detail.html:36
#: templates/hosting/virtual_machine_detail.html:123
#: templates/hosting/virtual_machines.html:16
msgid "Status"
msgstr ""
#: templates/hosting/orders.html:30
#: templates/hosting/virtual_machine_detail.html:134
msgid "Approved"
msgstr ""
#: templates/hosting/orders.html:32
#: templates/hosting/virtual_machine_detail.html:136
msgid "Declined"
msgstr ""
#: templates/hosting/orders.html:37
#: templates/hosting/virtual_machine_detail.html:140
#: templates/hosting/virtual_machines.html:38
msgid "View Detail"
msgstr ""
#: templates/hosting/orders.html:41
msgid "Cancel Order"
msgstr ""
#: templates/hosting/orders.html:56
msgid "Do You want do delete your order?"
msgstr ""
#: templates/hosting/orders.html:64
msgid "Close"
msgstr ""
#: templates/hosting/orders.html:66
msgid "Delete"
msgstr ""
#: templates/hosting/orders.html:83 templates/hosting/virtual_machines.html:49
msgid "previous"
msgstr ""
#: templates/hosting/orders.html:89 templates/hosting/virtual_machines.html:55
msgid "next"
msgstr ""
#: templates/hosting/reset_password.html:11
msgid "Reset your password"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:19
msgid "Settings"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:25
msgid "Billing"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:31
msgid "Orders"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:60
msgid "Ip not assigned yet"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:87
msgid "Disk"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:106
msgid "Current pricing"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:152
msgid "Current status"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:172
msgid "Cancel Virtual Machine"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:181
msgid "Cancel your Virtual Machine"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:184
msgid "Are you sure do you want to cancel your Virtual Machine "
msgstr ""
#: templates/hosting/virtual_machine_detail.html:184
msgid "plan?"
msgstr ""
#: templates/hosting/virtual_machine_detail.html:187
msgid "Cancel"
msgstr ""
#: templates/hosting/virtual_machine_key.html:10
msgid "SSH Private Key"
msgstr ""
#: templates/hosting/virtual_machine_key.html:15
#: templates/hosting/virtual_machine_key.html:29
msgid "Warning!"
msgstr ""
#: templates/hosting/virtual_machine_key.html:15
msgid ""
"You can view your SSH private key once. Copy it or if it wasn't downloaded "
"automatically, just click on Download to start it."
msgstr ""
#: templates/hosting/virtual_machine_key.html:24
msgid "Copy to Clipboard"
msgstr ""
#: templates/hosting/virtual_machine_key.html:25
msgid "Download"
msgstr ""
#: templates/hosting/virtual_machine_key.html:29
msgid ""
"Your SSH private key was already generated and downloaded, if you lost it, "
"contact us. "
msgstr ""
#: templates/hosting/virtual_machine_key.html:32
msgid "Go to my Virtual Machine Dashboard"
msgstr ""
#: templates/hosting/virtual_machines.html:9
msgid "Virtual Machines"
msgstr ""
#: templates/hosting/virtual_machines.html:13
msgid "ID"
msgstr ""
#: templates/hosting/virtual_machines.html:14
msgid "Location"
msgstr ""

View file

@ -1,4 +1,5 @@
{% load staticfiles bootstrap3%}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
@ -63,44 +64,44 @@
{% if request.user.is_authenticated %}
<li>
<a href="{% url 'hosting:virtual_machines' %}">
<i class="fa fa-server" aria-hidden="true"></i> My Virtual Machines
<i class="fa fa-server" aria-hidden="true"></i> {% trans "My Virtual Machines"%}
</a>
</li>
<li>
<a href="{% url 'hosting:orders' %}">
<i class="fa fa-credit-card"></i> My Orders
<i class="fa fa-credit-card"></i> {% trans "My Orders"%}
</a>
</li>
<li>
<a href="{% url 'hosting:notifications' %}">
<i class="fa fa-bell"></i> Notifications
<i class="fa fa-bell"></i> {% trans "Notifications "%}
</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#">
<i class="glyphicon glyphicon-user"></i> {{request.user.name}} <span class="caret"></span></a>
<ul id="g-account-menu" class="dropdown-menu" role="menu">
<li><a href="{% url 'hosting:logout' %}"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
<li><a href="{% url 'hosting:logout' %}"><i class="glyphicon glyphicon-lock"></i>{% trans "Logout"%} </a></li>
</ul>
</li>
{% else %}
<li>
<a href="{{ request.session.hosting_url}}#how">How it works</a>
<a href="{{ request.session.hosting_url}}#how">{% trans "How it works"%}</a>
</li>
<li>
<a href="{{ request.session.hosting_url }}#your">Your infrastructure</a>
<a href="{{ request.session.hosting_url }}#your">{% trans "Your infrastructure"%}</a>
</li>
<li>
<a href="{{ request.session.hosting_url }}#our">Our inftrastructure</a>
<a href="{{ request.session.hosting_url }}#our">{% trans "Our inftrastructure"%}</a>
</li>
<li>
<a href="{{ request.session.hosting_url }}#price">Pricing</a>
<a href="{{ request.session.hosting_url }}#price">{% trans "Pricing" %}</a>
</li>
<li>
<a href="{{ request.session.hosting_url }}#contact">Contact</a>
<a href="{{ request.session.hosting_url }}#contact">{% trans "Contact"%}</a>
</li>
<li>
<a href="{% url 'hosting:login' %}?next={{request.current_path}}">Login</a>
<a href="{% url 'hosting:login' %}?next={{request.current_path}}">{% trans "Login"%}</a>
</li>
{% endif %}
</ul>
@ -123,24 +124,24 @@
<div class="col-lg-12">
<ul class="list-inline">
<li>
<a href="#">Home</a>
<a href="#">{% trans "Home"%}</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.session.hosting_url}}#how">How it works</a>
<a href="{{ request.session.hosting_url}}#how">{% trans "How it works"%}</a>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.session.hosting_url }}#your">Your infrastructure</a></li>
<a href="{{ request.session.hosting_url }}#your">{% trans "Your infrastructure"%}</a></li>
<li>&sdot;</li>
<li>
<a href="{{ request.session.hosting_url }}#our">Our infrastructure</a></li>
<a href="{{ request.session.hosting_url }}#our">{% trans "Our inftrastructure"%}</a></li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.session.hosting_url }}#services">Pricing</a>
<a href="{{ request.session.hosting_url }}#services">{% trans "Pricing"%}</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.session.hosting_url }}#contact">Contact</a>
<a href="{{ request.session.hosting_url }}#contact">{% trans "Contact"%}</a>
</li>
</ul>

View file

@ -1,12 +1,13 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3%}
{% load i18n %}
{% block content %}
<div class="intro-auth intro-reset-password">
<div class="container">
<div class="col-md-4">&nbsp;</div>
<div class="col-md-4">
<div class="intro-message">
{% if messages %}
<ul class="list-unstyled">
{% for message in messages %}
@ -15,7 +16,7 @@
</ul>
{% endif %}
<h2 class="section-heading">Set your new password</h2>
<h2 class="section-heading">{% trans "Set your new password"%}</h2>
<form action="" method="post" class="form" novalidate>
{% csrf_token %}
@ -24,11 +25,11 @@
{% endfor %}
{% buttons %}
<button type="submit" class="btn btn-default">
Reset
{% trans "Reset"%}
</button>
{% endbuttons %}
</form>
<span>Already have an account ? <a class="unlink" href="{% url 'hosting:login' %}">Log in</a></span>
<span>{% trans "Already have an account ?"%}<a class="unlink" href="{% url 'hosting:login' %}">{% trans "Log in"%}</a></span>
<ul class="list-inline intro-social-buttons">
</ul>
</div>

View file

@ -1,4 +1,5 @@
{% extends "hosting/base_short.html" %}
{% load i18n %}
{% load staticfiles bootstrap3%}
{% block content %}
@ -18,14 +19,14 @@
{% if request.GET.logged_out %}
<div class="alert"> <!-- singular -->
<a class="close" data-dismiss="alert">×</a>
You haven been logged out
{% trans "You haven been logged out"%}
</div>
{% endif %}
{% endblock %}
<div class="intro-message">
<h2 class="section-heading">Login</h2>
<h2 class="section-heading">{% trans "Login"%}</h2>
<form action="{% url 'hosting:login' %}" method="post" class="form" novalidate>
{% csrf_token %}
{% for field in form %}
@ -34,13 +35,13 @@
<p>{{form.non_field_errors|striptags}}</p>
{% buttons %}
<button type="submit" class="btn btn-default">
Login
{% trans "Login"%}
</button>
{% endbuttons %}
</form>
<span>Don't have an account yet ? <a class="unlink" href="{% url 'hosting:signup' %}">Sign up</a></span>
<span>{% trans "Don't have an account yet ? "%}<a class="unlink" href="{% url 'hosting:signup' %}">{% trans "Sign up"%}</a></span>
<br/>
<span> <a class="unlink" href="{% url 'hosting:reset_password' %}">Forgot your password ?</a></span>
<span> <a class="unlink" href="{% url 'hosting:reset_password' %}">{% trans "Forgot your password ? "%}</a></span>
<ul class="list-inline intro-social-buttons">

View file

@ -6,14 +6,14 @@
<div class="row">
<div class="col-md-9 col-md-offset-2">
<div class="col-sm-12">
<h3><i class="fa fa-bell" aria-hidden="true"></i> Notifications</h3>
<h3><i class="fa fa-bell" aria-hidden="true"></i>{% trans "Notifications"%} </h3>
<hr/>
<div class="col-md-3"> <!-- required for floating -->
<!-- Nav tabs -->
<ul class="nav nav-tabs tabs-left sideways">
<li class="active">
<a href="#unread-v" data-toggle="tab">
Unread
{% trans "Unread"%}
{% if unread_notifications|length > 0%}
<span class="badge">
{{unread_notifications|length}}
@ -23,7 +23,7 @@
</li>
<li>
<a href="#all-v" data-toggle="tab">
All
{% trans "All"%}
</a>
</li>
</ul>
@ -35,7 +35,7 @@
<div class="tab-pane active" id="unread-v">
<div class="row">
<div class="col-md-12">
<h3>Unread notifications</h3>
<h3>{% trans "Unread notifications"%} </h3>
<hr>
</div>
</div>
@ -45,7 +45,7 @@
<form method="POST" action="{% url 'hosting:read_notification' notification.id %}">
{% csrf_token %}
<span>{{notification}} -</span>
<button type="submit" class="btn btn-link">Mark as read</button>
<button type="submit" class="btn btn-link">{% trans "Mark as read"%}</button>
<span class="pull-right" style="font-size: 11px;color: #999;">{{notification.date}}</span>
</form>
<hr/>
@ -56,7 +56,7 @@
<div class="tab-pane" id="all-v">
<div class="row">
<div class="col-md-12">
<h3>All notifications</h3>
<h3>{% trans "All notifications"%}</h3>
<hr>
{% for notification in all_notifications %}
<span>{{notification.message}} </span>

View file

@ -1,18 +1,19 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3 %}
{% load i18n %}
{% block content %}
<div class="container order-detail-container">
<div class="row">
<div class="col-xs-8 col-xs-offset-2">
<div class="invoice-title">
<h2>Invoice</h2><h3 class="pull-right">Order # {{order.id}}</h3>
<h2>{% trans "Invoice"%}</h2><h3 class="pull-right">{% trans "Order #"%} {{order.id}}</h3>
</div>
<hr>
<div class="row">
<div class="col-xs-6">
<address>
<h3><b>Billed To:</b></h3>
<h3><b>{% trans "Billed To:"%}</b></h3>
{{user.name}}<br>
{{order.billing_address.street_address}},{{order.billing_address.postal_code}}<br>
{{order.billing_address.city}}, {{order.billing_address.country}}.
@ -20,9 +21,9 @@
</div>
<div class="col-xs-6 text-right">
<address>
<strong>Order Date:</strong><br>
<strong>{% trans "Billed To:"%}</strong><br>
{{order.created_at}}<br><br>
<strong>Status:</strong><br>
<strong>{% trans "Status:"%}</strong><br>
<strong class="{% if order.status == 'Approved' %}text-success
{%else%} text-danger
{% endif %}">{{order.status}}</strong>
@ -34,7 +35,7 @@
<div class="row">
<div class="col-xs-6">
<address>
<strong>Payment Method:</strong><br>
<strong>{% trans "Payment Method:"%}</strong><br>
{{order.cc_brand}} ending **** {{order.last4}}<br>
{{user.email}}
</address>
@ -45,26 +46,26 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h3><b>Order summary</b></h3>
<h3><b>{% trans "Order summary"%}</b></h3>
<hr>
<div class="content">
<p><b>Type</b> <span class="pull-right">{{order.vm_plan.hosting_company_name}}</span></p>
<p><b>{% trans "Type"%}</b> <span class="pull-right">{{order.vm_plan.hosting_company_name}}</span></p>
<hr>
<p><b>Configuration</b> <span class="pull-right">{{order.vm_plan.get_configuration_display}}</span></p>
<p><b>{% trans "Configuration"%}</b> <span class="pull-right">{{order.vm_plan.get_configuration_display}}</span></p>
<hr>
<p><b>Cores</b> <span class="pull-right">{{order.vm_plan.cores}}</span></p>
<p><b>{% trans "Cores"%}</b> <span class="pull-right">{{order.vm_plan.cores}}</span></p>
<hr>
<p><b>Memory</b> <span class="pull-right">{{order.vm_plan.memory}} GiB</span></p>
<p><b>{% trans "Memory"%}</b> <span class="pull-right">{{order.vm_plan.memory}} GiB</span></p>
<hr>
<p><b>Disk space</b> <span class="pull-right">{{order.vm_plan.disk_size}} GiB</span></p>
<p><b>{% trans "Disk space"%}</b> <span class="pull-right">{{order.vm_plan.disk_size}} GiB</span></p>
<hr>
<h4>Total<p class="pull-right"><b>{{order.vm_plan.price}} CHF</b></p></h4>
<h4>{% trans "Total"%}<p class="pull-right"><b>{{order.vm_plan.price}} CHF</b></p></h4>
</div>
<br/>
{% url 'hosting:payment' as payment_url %}
{% if payment_url in request.META.HTTP_REFERER %}
<div class=" content pull-right">
<a href="{% url 'hosting:virtual_machine_key' order.vm_plan.id %}" ><button class="btn btn-info">Finish Configuration</button></a>
<a href="{% url 'hosting:virtual_machine_key' order.vm_plan.id %}" ><button class="btn btn-info">{% trans "Finish Configuration"%}</button></a>
</div>
{% endif %}
</div>

View file

@ -1,5 +1,7 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3 %}
{% load i18n %}
{% block content %}
<div>
@ -7,14 +9,14 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
<table class="table borderless table-hover">
<h3><i class="fa fa-credit-card"></i> My Orders</h3>
<h3><i class="fa fa-credit-card"></i>{% trans "My Orders"%}</h3>
<br/>
<thead>
<tr>
<th>#</th>
<th>Date</th>
<th>Amount</th>
<th>Status</th>
<th>{% trans "Date"%}</th>
<th>{% trans "Amount"%}</th>
<th>{% trans "Status"%}</th>
<th></th>
</tr>
</thead>
@ -25,18 +27,18 @@
<td>{{ order.created_at }}</td>
<td>{{ order.vm_plan.price }} CHF</td>
<td>{% if order.approved %}
<span class="text-success strong">Approved</span>
<span class="text-success strong">{% trans "Approved"%}</span>
{% else %}
<span class="text-danger strong">Declined</span>
<span class="text-danger strong">{% trans "Declined"%}</span>
{% endif %}
</td>
<td>
<button type="button" class="btn btn-default"><a
href="{% url 'hosting:orders' order.id %}">View Detail</a>
href="{% url 'hosting:orders' order.id %}">{% trans "View Detail"%}</a>
</button>
<button type="button" class="btn btn-default" data-toggle="modal"
data-target="#Modal{{ order.id }}"><a
href="#">Cancel order</a>
href="#">{% trans "Cancel Order"%}</a>
</button>
</td>
</tr>
@ -51,9 +53,7 @@
</button>
</div>
<div class="modal-body">
<h4 class="modal-title" id="ModalLabel">Do You want do delete
Your
order?</h4>
<h4 class="modal-title" id="ModalLabel">{% trans "Do You want do delete your order?"%}</h4>
<form method="post"
action="{% url 'hosting:delete_order' order.id %}">
@ -61,9 +61,9 @@
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">
Close
{% trans "Close"%}
</button>
<button type="submit" class="btn btn-primary">Delete
<button type="submit" class="btn btn-primary">{% trans "Delete"%}
</button>
</div>
</form>
@ -80,13 +80,13 @@
<div class="pagination">
<span class="page-links">
{% if page_obj.has_previous %}
<a href="{{ request.path }}?page={{ page_obj.previous_page_number }}">previous</a>
<a href="{{ request.path }}?page={{ page_obj.previous_page_number }}">{% trans "previous"%}</a>
{% endif %}
<span class="page-current">
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
</span>
{% if page_obj.has_next %}
<a href="{{ request.path }}?page={{ page_obj.next_page_number }}">next</a>
<a href="{{ request.path }}?page={{ page_obj.next_page_number }}">{% trans "next"%}</a>
{% endif %}
</span>
</div>

View file

@ -1,12 +1,14 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3%}
{% load i18n %}
{% block content %}
<div class="intro-auth intro-reset-password">
<div class="container">
<div class="col-md-4">&nbsp;</div>
<div class="col-md-4">
<div class="intro-message">
<h2 class="section-heading">Reset your password</h2>
<h2 class="section-heading">{% trans "Reset your password"%}</h2>
<form action="{% url 'hosting:reset_password' %}" method="post" class="form" novalidate>
{% csrf_token %}
@ -15,11 +17,11 @@
{% endfor %}
{% buttons %}
<button type="submit" class="btn btn-default">
Reset
{% trans "Reset"%}
</button>
{% endbuttons %}
</form>
<span>Already have an account ? <a class="unlink" href="{% url 'hosting:login' %}">Log in</a></span>
<span>{% trans "Already have an account ?"%} <a class="unlink" href="{% url 'hosting:login' %}">{% trans "Login"%} </a></span>
<ul class="list-inline intro-social-buttons">
</ul>
</div>

View file

@ -1,12 +1,14 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3%}
{% load i18n %}
{% block content %}
<div class="intro-auth intro-signup">
<div class="container">
<div class="col-md-4 col-sm-4 col-xs-4">&nbsp;</div>
<div class="col-md-4 col-sm-6 col-xs-6">
<div class="intro-message">
<h2 class="section-heading">Sign up</h2>
<h2 class="section-heading">{% trans "Sign up"%}</h2>
<form action="{% url 'hosting:signup' %}" method="post" class="form" novalidate>
{% csrf_token %}
@ -15,11 +17,11 @@
{% endfor %}
{% buttons %}
<button type="submit" class="btn btn-default">
Sign up
{% trans "Sign up"%}
</button>
{% endbuttons %}
</form>
<span>Already have an account ? <a class="unlink" href="{% url 'hosting:login' %}">Log in</a></span>
<span>{% trans "Already have an account ?"%} <a class="unlink" href="{% url 'hosting:login' %}">{% trans "Login"%}</a></span>
<ul class="list-inline intro-social-buttons">
</ul>
</div>

View file

@ -1,5 +1,7 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3 %}
{% load i18n %}
{% block content %}
<div>
<div class="container virtual-machine-container dashboard-container ">
@ -14,24 +16,24 @@
<li class="active">
<a href="#settings-v" data-toggle="tab">
<i class="fa fa-cogs" aria-hidden="true"></i>
Settings
{% trans "Settings"%}
</a>
</li>
<li>
<a href="#billing-v" data-toggle="tab">
<i class="fa fa-money" aria-hidden="true"></i>
Billing
{% trans "Billing"%}
</a>
</li>
<li>
<a href="#orders-v" data-toggle="tab">
<i class="fa fa-credit-card"></i>
Orders
{% trans "Orders"%}
</a>
</li>
<li>
<a href="#status-v" data-toggle="tab">
<i class="fa fa-signal" aria-hidden="true"></i> Status
<i class="fa fa-signal" aria-hidden="true"></i> {% trans "Status"%}
</a>
</li>
</ul>
@ -55,7 +57,7 @@
{% else %}
<div class="pull-right right-place">
<span class="label label-warning"><strong>Ip not assigned yet</strong></span>
<span class="label label-warning"><strong>{% trans "Ip not assigned yet"%}</strong></span>
<i data-toggle="tooltip" title="Your ip will be assigned soon" class="fa fa-info-circle" aria-hidden="true"></i>
</div>
@ -70,19 +72,19 @@
<div class="row">
<div class="col-md-3">
<div class="well text-center">
<i class="fa fa-cubes" aria-hidden="true"></i> Cores <br/>
<i class="fa fa-cubes" aria-hidden="true"></i>{% trans "Cores"%} <br/>
<span class="label label-success">{{virtual_machine.cores}}</span>
</div>
</div>
<div class="col-md-3">
<div class="well text-center">
<i class="fa fa-tachometer" aria-hidden="true"></i> Memory <br/>
<i class="fa fa-tachometer" aria-hidden="true"></i> {% trans "Memory"%} <br/>
<span class="label label-success">{{virtual_machine.memory}} GiB</span>
</div>
</div>
<div class="col-md-3">
<div class="well text-center">
<i class="fa fa-hdd-o" aria-hidden="true"></i> Disk <br/>
<i class="fa fa-hdd-o" aria-hidden="true"></i> {% trans "Disk"%} <br/>
<span class="label label-success">{{virtual_machine.disk_size}} GiB</span>
</div>
</div>
@ -91,7 +93,7 @@
</div><!--/row-->
<div class="row">
<div class="col-md-12">
Configuration: {{virtual_machine.get_configuration_display}}
{% trans "Configuration"%}: {{virtual_machine.get_configuration_display}}
</div>
</div>
@ -101,7 +103,7 @@
<div class="row ">
<div class="col-md-12 inline-headers">
<h3>Current pricing</h3>
<h3>{% trans "Current pricing"%}</h3>
<span class="h3 pull-right"><strong>{{virtual_machine.price|floatformat}} CHF</strong>/mo</span>
<hr>
</div>
@ -116,9 +118,9 @@
<thead>
<tr>
<th>#</th>
<th>Date</th>
<th>Amount</th>
<th>Status</th>
<th>{% trans "Date"%}</th>
<th>{% trans "Amount"%}</th>
<th>{% trans "Status"%}</th>
<th></th>
</tr>
</thead>
@ -129,13 +131,13 @@
<td>{{order.created_at}}</td>
<td>{{order.vm_plan.price}} CHF</td>
<td>{% if order.approved %}
<span class="text-success strong">Approved</span>
<span class="text-success strong">{% trans "Approved"%}</span>
{% else%}
<span class="text-danger strong">Declined</span>
<span class="text-danger strong">{% trans "Declined"%}</span>
{% endif%}
</td>
<td>
<button type="button" class="btn btn-default"><a href="{% url 'hosting:orders' order.id %}">View Detail</a></button>
<button type="button" class="btn btn-default"><a href="{% url 'hosting:orders' order.id %}">{% trans "View Detail"%}</a></button>
</td>
</tr>
{% endfor %}
@ -147,7 +149,7 @@
<div class="tab-pane" id="status-v">
<div class="row ">
<div class="col-md-12 inline-headers">
<h3>Current status</h3>
<h3>{% trans "Current status"%}</h3>
<div class="pull-right space-above">
{% if virtual_machine.status == 'pending' %}
<span class="label label-warning"><strong>{{virtual_machine.get_status_display}}</strong></span>
@ -167,7 +169,7 @@
{% csrf_token %}
</form>
<button type="text" data-href="{% url 'hosting:virtual_machines' virtual_machine.id %}" data-toggle="modal" data-target="#confirm-cancel" class="btn btn-danger">Cancel Virtual Machine</button>
<button type="text" data-href="{% url 'hosting:virtual_machines' virtual_machine.id %}" data-toggle="modal" data-target="#confirm-cancel" class="btn btn-danger">{% trans "Cancel Virtual Machine"%}</button>
</div>
</div>
@ -176,13 +178,13 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Cancel your Virtual Machine
{% trans "Cancel your Virtual Machine"%}
</div>
<div class="modal-body">
Are you sure do you want to cancel your Virtual Machine {{vm.virtual_machine}} plan?
{% trans "Are you sure do you want to cancel your Virtual Machine "%} {{vm.virtual_machine}} {% trans "plan?"%}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel"%}</button>
<a class="btn btn-danger btn-ok">OK</a>
</div>
</div>

View file

@ -7,11 +7,12 @@
<div class="col-md-9 col-md-offset-2">
<div class="col-sm-12">
<h3><i class="fa fa-key" aria-hidden="true"></i> SSH Private Key</h3>
<h3><i class="fa fa-key" aria-hidden="true"></i>{% trans "SSH Private Key"%} </h3>
<hr/>
{% if private_key %}
<div class="alert alert-warning">
<strong>Warning!</strong> You can view your SSH private key once. Copy it or if it wasn't downloaded automatically, just click on Download to start it.
<strong>{% trans "Warning!"%}</strong>{% trans "You can view your SSH private key once. Copy it or if it wasn't downloaded automatically, just click on Download to start it."%}
</div>
<div class="form-group">
<label for="comment">private_key.pem</label>
@ -20,15 +21,15 @@
</div>
<div class="form-group pull-right">
<button type="button" id="copy_to_clipboard" data-clipboard-target="#ssh_key" class="btn btn-warning"
data-toggle="tooltip" data-placement="bottom" title="Copied" data-trigger="click">Copy to Clipboard</button>
<button type="button" id="download_ssh_key" class="btn btn-warning">Download</button>
data-toggle="tooltip" data-placement="bottom" title="Copied" data-trigger="click">{% trans "Copy to Clipboard"%}</button>
<button type="button" id="download_ssh_key" class="btn btn-warning">{% trans "Download"%}</button>
</div>
{% else %}
<div class="alert alert-warning">
<strong>Warning!</strong> Your SSH private key was already generated and downloaded, if you lost it, contact us.
<strong>{% trans "Warning!"%}</strong>{% trans "Your SSH private key was already generated and downloaded, if you lost it, contact us. "%}
</div>
{% endif %}
<a class="btn btn-success" href="{% url 'hosting:virtual_machines' virtual_machine.id %}"> Go to my Virtual Machine Dashboard</a>
<a class="btn btn-success" href="{% url 'hosting:virtual_machines' virtual_machine.id %}">{% trans "Go to my Virtual Machine Dashboard"%} </a>
<div class="clearfix"></div>
</div>
</div>

View file

@ -6,14 +6,14 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
<table class="table borderless table-hover">
<h3><i class="fa fa-server" aria-hidden="true"></i> Virtual Machines</h3>
<h3><i class="fa fa-server" aria-hidden="true"></i>{% trans "Virtual Machines"%} </h3>
<br/>
<thead>
<tr>
<th>ID</th>
<th>Location</th>
<th>Amount</th>
<th>Status</th>
<th>{% trans "ID"%}</th>
<th>{% trans "Location"%} </th>
<th>{% trans "Amount"%}</th>
<th>{% trans "Status"%}</th>
<th></th>
</tr>
</thead>
@ -35,7 +35,7 @@
</td>
<td>
<button type="button" class="btn btn-default"><a href="{% url 'hosting:virtual_machines' vm.id %}">View Detail</a></button>
<button type="button" class="btn btn-default"><a href="{% url 'hosting:virtual_machines' vm.id %}">{% trans "View Detail"%}</a></button>
</td>
</tr>
{% endfor %}
@ -46,13 +46,13 @@
<div class="pagination">
<span class="page-links">
{% if page_obj.has_previous %}
<a href="{{request.path}}?page={{ page_obj.previous_page_number }}">previous</a>
<a href="{{request.path}}?page={{ page_obj.previous_page_number }}">{% trans "previous"%}</a>
{% endif %}
<span class="page-current">
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
</span>
{% if page_obj.has_next %}
<a href="{{request.path}}?page={{ page_obj.next_page_number }}">next</a>
<a href="{{request.path}}?page={{ page_obj.next_page_number }}">{% trans "next"%}</a>
{% endif %}
</span>
</div>