2016-05-29 18:37:43 +00:00
|
|
|
{% extends "hosting/base_short.html" %}
|
Created signup view. Added login after signup.Added signup url to nosystem app urls.py. Added logout view, Added logout button on nabber, Added password reset form, Added password view , Added password reset html, Added password reset email for nosystemd app. Added confirm_reset_password.html, Added confirm_ reset password view, Added confirm reset password form, Fixed reset password token generation, Started donation view, Added donation view, Added donation.html, Added donation form, Adding donation.js lib in order to capture stripe payments for nosystem app.
2016-07-22 06:24:32 +00:00
|
|
|
{% load staticfiles bootstrap3 i18n %}
|
2016-05-29 18:37:43 +00:00
|
|
|
{% block content %}
|
|
|
|
<div>
|
|
|
|
<div class="container virtual-machine-container dashboard-container ">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9 col-md-offset-2">
|
|
|
|
<div class="col-sm-12">
|
2016-07-19 02:24:44 +00:00
|
|
|
<h3><i class="fa fa-bell" aria-hidden="true"></i>{% trans "Notifications"%} </h3>
|
2016-05-29 18:37:43 +00:00
|
|
|
<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">
|
2016-07-19 02:24:44 +00:00
|
|
|
{% trans "Unread"%}
|
2016-06-07 05:29:22 +00:00
|
|
|
{% if unread_notifications|length > 0%}
|
|
|
|
<span class="badge">
|
|
|
|
{{unread_notifications|length}}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2016-05-29 18:37:43 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#all-v" data-toggle="tab">
|
2016-07-19 02:24:44 +00:00
|
|
|
{% trans "All"%}
|
2016-05-29 18:37:43 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-9">
|
|
|
|
<!-- Tab panes -->
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="unread-v">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2016-07-19 02:24:44 +00:00
|
|
|
<h3>{% trans "Unread notifications"%} </h3>
|
2016-05-29 18:37:43 +00:00
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
{% for notification in unread_notifications %}
|
|
|
|
<form method="POST" action="{% url 'hosting:read_notification' notification.id %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<span>{{notification}} -</span>
|
2016-07-19 02:24:44 +00:00
|
|
|
<button type="submit" class="btn btn-link">{% trans "Mark as read"%}</button>
|
2016-05-29 18:37:43 +00:00
|
|
|
<span class="pull-right" style="font-size: 11px;color: #999;">{{notification.date}}</span>
|
|
|
|
</form>
|
|
|
|
<hr/>
|
|
|
|
{% endfor %}
|
|
|
|
</div><!--/col-12-->
|
|
|
|
</div><!--/row-->
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="all-v">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2016-07-19 02:24:44 +00:00
|
|
|
<h3>{% trans "All notifications"%}</h3>
|
2016-05-29 18:37:43 +00:00
|
|
|
<hr>
|
|
|
|
{% for notification in all_notifications %}
|
|
|
|
<span>{{notification.message}} </span>
|
|
|
|
<span class="pull-right" style="font-size: 11px;color: #999;">{{notification.message.date}}</span>
|
|
|
|
<hr/>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
</div><!--/col-12-->
|
|
|
|
</div><!--/row-->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{%endblock%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|