diff options
Diffstat (limited to 'servo/templates')
-rwxr-xr-x | servo/templates/accounts/calendars.html | 58 | ||||
-rwxr-xr-x | servo/templates/accounts/orders.html | 8 | ||||
-rwxr-xr-x | servo/templates/accounts/tabs.html | 12 | ||||
-rw-r--r-- | servo/templates/accounts/updates.html | 2 | ||||
-rwxr-xr-x | servo/templates/accounts/view_calendar.html | 6 | ||||
-rw-r--r-- | servo/templates/checkin/index.html | 2 | ||||
-rwxr-xr-x | servo/templates/default.html | 14 | ||||
-rwxr-xr-x | servo/templates/search/spotlight.html | 2 |
8 files changed, 51 insertions, 53 deletions
diff --git a/servo/templates/accounts/calendars.html b/servo/templates/accounts/calendars.html index c10276c..72a83f9 100755 --- a/servo/templates/accounts/calendars.html +++ b/servo/templates/accounts/calendars.html @@ -4,26 +4,26 @@ {% block toolbar %} <div class="btn-group"> - <a href="{% url 'calendars-create' username=request.user.username %}" data-modal="#modal" class="btn"><i class="icon-plus"></i> {% trans "New Calendar" %}</a> -{% if calendar %} - <a href="{% url 'calendars.event.edit' username=request.user.username cal_pk=calendar.pk %}" class="btn">{% trans "New Event" %}</a> -{% endif %} + <a href="{% url 'calendars-create' %}" data-modal="#modal" class="btn"><i class="icon-plus"></i> {% trans "New Calendar" %}</a> + {% if calendar %} + <a href="{% url 'calendars.event.edit' cal_pk=calendar.pk %}" class="btn">{% trans "New Event" %}</a> + {% endif %} </div> <div class="btn-group"> -{% if calendar %} - <a href="print/" class="btn window"><i class="icon-print"></i> {% trans "Print" %}</a> - <a href="{% url 'calendars-edit' request.user.username calendar.pk view %}" data-modal="#modal" class="btn"><i class="icon-pencil"></i> {% trans "Edit" %}</a> - {% if perms.servo.delete_calendar %} - <a href="{{ calendar.get_absolute_url }}delete/" data-modal="#modal" class="btn"><i class="icon-trash"></i> {% trans "Delete" %}</a> - {% else %} - <a href="" class="btn disabled">{% trans "Delete" %}</a> - {% endif %} -{% endif %} + {% if calendar %} + <a href="print/" class="btn window"><i class="icon-print"></i> {% trans "Print" %}</a> + <a href="{% url 'calendars-edit' calendar.pk view %}" data-modal="#modal" class="btn"><i class="icon-pencil"></i> {% trans "Edit" %}</a> + {% if perms.servo.delete_calendar %} + <a href="{{ calendar.get_absolute_url }}delete/" data-modal="#modal" class="btn"><i class="icon-trash"></i> {% trans "Delete" %}</a> + {% else %} + <a href="" class="btn disabled">{% trans "Delete" %}</a> + {% endif %} + {% endif %} </div> <div class="btn-group"> - <a href="download/" class="btn {% if not calendar %}disabled{% endif %}"><i class="icon-download"></i> {% trans "Download" %}</a> + <a href="download/" class="btn {% if not calendar %}disabled{% endif %}"><i class="icon-download"></i> {% trans "Download" %}</a> </div> {% endblock toolbar %} @@ -31,25 +31,25 @@ {% block second_row %} <div class="row-fluid"> - <div class="span3"> - <ul class="nav nav-list"> - <li class="nav-header">{% trans "Calendars" %}</li> - {% for c in calendars %} - <li class="{% active request c.pk '/' %}"> - <a href="{% url 'calendars.view' pk=c.pk username=request.user.username view='week' %}">{{ c.title }}<span class="badge pull-right">{{ c.get_unfinished_count }}</span></a> - </li> - {% endfor %} - </ul> - </div> - - <div class="span9"> + <div class="span3"> + <ul class="nav nav-list"> + <li class="nav-header">{% trans "Calendars" %}</li> + {% for c in calendars %} + <li class="{% active request c.pk '/' %}"> + <a href="{% url 'calendars.view' pk=c.pk view='week' %}">{{ c.title }}<span class="badge pull-right">{{ c.get_unfinished_count }}</span></a> + </li> + {% endfor %} + </ul> + </div> + + <div class="span9"> {% block detail_view %} - <h1 class="muted text-center">{% trans "No calendar selected" %}</h1> + <h1 class="muted text-center">{% trans "No calendar selected" %}</h1> {% endblock detail_view %} - </div> + </div> </div> {% endblock second_row %} {% block crumbs %} - <li class="active"><a href="{% url 'calendars-list' username=request.user.username %}">{% trans "Calendars" %}</a></li> +<li class="active"><a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a></li> {% endblock crumbs %} diff --git a/servo/templates/accounts/orders.html b/servo/templates/accounts/orders.html index 8420ad8..c26e07d 100755 --- a/servo/templates/accounts/orders.html +++ b/servo/templates/accounts/orders.html @@ -23,7 +23,7 @@ <div class="row-fluid"> <div class="span12"> - {% include "accounts/tabs.html" %} + {% include "accounts/tabs.html" %} </div> </div> @@ -32,15 +32,15 @@ <div id="collapsable" class="collapse out"> <div class="well clearfix"> <form action="" method="get" class="form-inline"> - {% for field in form %} + {% for field in form %} <div class="control-group pull-left"> <label class="control-label">{{ field.label }}</label> <div class="controls">{{ field }}</div> </div> - {% endfor %} + {% endfor %} <p class="clearfix"><hr/></p> <div class="pull-right"> - <a class="btn" href="{% url 'accounts-list_orders' username=request.user.username %}?user=state=1&user={{ request.user.pk }}"><i class="icon-refresh"></i> {% trans "Reset" %}</a> + <a class="btn" href="{% url 'accounts-list_orders' %}?user=state=1&user={{ request.user.pk }}"><i class="icon-refresh"></i> {% trans "Reset" %}</a> <button class="btn btn-primary" type="submit"><i class="icon-search icon-white"></i> {% trans "Search" %}</button> </div> </form> diff --git a/servo/templates/accounts/tabs.html b/servo/templates/accounts/tabs.html index 4444ab8..e570241 100755 --- a/servo/templates/accounts/tabs.html +++ b/servo/templates/accounts/tabs.html @@ -2,21 +2,19 @@ {% load servo_tags %} <ul class="nav nav-tabs"> -{% with request.user.username as username %} <li class="{% active request "orders" %}"> - <a href="{% url 'accounts-list_orders' username=username %}">{% trans "Orders" %}</a> + <a href="{% url 'accounts-list_orders' %}">{% trans "Orders" %}</a> </li> <li class="{% active request "updates" %}"> - <a href="{% url 'accounts-updates' username=username %}">{% trans "Updates" %}</a> + <a href="{% url 'accounts-updates' %}">{% trans "Updates" %}</a> </li> <li class="{% active request "calendars" %}"> - <a href="{% url 'calendars-list' username=username %}">{% trans "Calendars" %}</a> + <a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a> </li> <li class="{% active request "stats" %}"> - <a href="{% url 'accounts-stats' username=username %}">{% trans "Statistics" %}</a> + <a href="{% url 'accounts-stats' %}">{% trans "Statistics" %}</a> </li> <li class="{% active request "settings" %}"> - <a href="{% url 'accounts-settings' username=username %}">{% trans "Settings" %}</a> + <a href="{% url 'accounts-settings' %}">{% trans "Settings" %}</a> </li> -{% endwith %} </ul> diff --git a/servo/templates/accounts/updates.html b/servo/templates/accounts/updates.html index 121aea9..08644ba 100644 --- a/servo/templates/accounts/updates.html +++ b/servo/templates/accounts/updates.html @@ -4,7 +4,7 @@ {% block toolbar %} {% if perms.servo.add_order %} - <a href="{% url 'accounts-clear_notifications' request.user.username %}?t={% now "Y/m/d/H/i" %}" class="btn"><i class="icon-ok"></i> {% trans "Clear all" %}</a> + <a href="{% url 'accounts-clear_notifications' %}?t={% now "Y/m/d/H/i" %}" class="btn"><i class="icon-ok"></i> {% trans "Clear all" %}</a> {% endif %} {% endblock toolbar %} diff --git a/servo/templates/accounts/view_calendar.html b/servo/templates/accounts/view_calendar.html index 2b063e2..7eece46 100755 --- a/servo/templates/accounts/view_calendar.html +++ b/servo/templates/accounts/view_calendar.html @@ -15,9 +15,9 @@ {% block browse_block %} <div class="btn-group pull-right"> - <a href="{% url 'calendars-view_calendar' username=request.user.username pk=calendar.pk view=view start_date=previous|date:'Y-m-d' %}" class="btn"><i class="icon-chevron-left"></i></a> + <a href="{% url 'calendars-view_calendar' pk=calendar.pk view=view start_date=previous|date:'Y-m-d' %}" class="btn"><i class="icon-chevron-left"></i></a> <a href="{{ base_url }}" class="btn">{% trans "Today" %}</a> - <a href="{% url 'calendars-view_calendar' username=request.user.username pk=calendar.pk view=view start_date=next|date:'Y-m-d' %}" class="btn"><i class="icon-chevron-right"></i></a> + <a href="{% url 'calendars-view_calendar' pk=calendar.pk view=view start_date=next|date:'Y-m-d' %}" class="btn"><i class="icon-chevron-right"></i></a> </div> {% endblock browse_block %} </div> @@ -61,6 +61,6 @@ {% endblock detail_view %} {% block crumbs %} - <li><a href="{% url 'calendars-list' username=request.user.username %}">{% trans "Calendars" %}</a> <span class="divider">/</span></li> + <li><a href="{% url 'calendars-list' %}">{% trans "Calendars" %}</a> <span class="divider">/</span></li> <li class="active">{{ calendar.title }}</li> {% endblock crumbs %} diff --git a/servo/templates/checkin/index.html b/servo/templates/checkin/index.html index 2995be5..d7928fb 100644 --- a/servo/templates/checkin/index.html +++ b/servo/templates/checkin/index.html @@ -44,7 +44,7 @@ <li class="disabled"><a href="#">{% trans "No users found" %}</a></li> {% endfor %} <li class="divider"></li> - <li><a href="{% url 'accounts-list_orders' user.username %}">{% bootstrap_icon "log-in" %} {% trans "Go to Servo" %}</a></li> + <li><a href="{% url 'accounts-list_orders' %}">{% bootstrap_icon "log-in" %} {% trans "Go to Servo" %}</a></li> <li><a href="{% url 'accounts-logout' %}" data-modal="#modal">{% bootstrap_icon "off" %} {% trans "Log out" %}...</a></li> </ul> </li> diff --git a/servo/templates/default.html b/servo/templates/default.html index 922d567..adcc592 100755 --- a/servo/templates/default.html +++ b/servo/templates/default.html @@ -31,7 +31,7 @@ </a> <div class="nav-collapse collapse"> <ul class="nav"> - <li class="{% active request request.user.username %}"><a href="{% url 'accounts-list_orders' request.user.username %}" title="{% trans "Homepage" %}"><i class="icon-home icon-white"></i></a></li> + <li class="{% active request request.user.username %}"><a href="{% url 'accounts-list_orders' %}" title="{% trans "Homepage" %}"><i class="icon-home icon-white"></i></a></li> <li class="{% active request '^orders' %}"><a href="{% url 'orders-index' %}?page=1"><i class="icon-inbox icon-white"></i> {% trans "Orders" %}</a></li> <li class="{% active request '^sales' %}"><a href="{% url 'products-list_products' %}"><i class="icon-shopping-cart icon-white"></i> {% trans "Inventory" %}</a></li> <li class="{% active request '^devices' %}"><a href="{% url 'devices-list' %}"><i class="icon-hdd icon-white"></i> {% trans "Devices" %}</a></li> @@ -65,9 +65,9 @@ <ul class="dropdown-menu"> <li><a href="#"><i class="icon-user"></i> {{ request.user.get_name }}</a></li> <li class="divider"></li> - <li><a href="{% url 'accounts-list_orders' user.username %}"><i class="icon-home"></i> {% trans "Homepage" %}</a></li> - <li><a href="{% url 'calendars-list' user.username %}"><i class="icon-calendar"></i> {% trans "Calendars" %}</a></li> - <li><a href="{% url 'accounts-settings' user.username %}"><i class="icon-wrench"></i> {% trans "Profile" %}</a></li> + <li><a href="{% url 'accounts-list_orders' %}"><i class="icon-home"></i> {% trans "Homepage" %}</a></li> + <li><a href="{% url 'calendars-list' %}"><i class="icon-calendar"></i> {% trans "Calendars" %}</a></li> + <li><a href="{% url 'accounts-settings' %}"><i class="icon-wrench"></i> {% trans "Profile" %}</a></li> {% if request.user.is_staff %} <li><a href="{% url 'admin-settings' %}"><i class="icon-cog"></i> {% trans "System Settings" %}</a></li> {% endif %} @@ -104,7 +104,7 @@ {% endfor %} <li class="divider"></li> <li> - <a class="text-center" href="{% url 'accounts-updates' request.user.username %}?kind=set_status"> + <a class="text-center" href="{% url 'accounts-updates' %}?kind=set_status"> <strong>{% trans "See All Alerts" %}</strong> <i class="icon-chevron-right"></i> </a> </li> @@ -138,7 +138,7 @@ {% endwith %} <li class="divider"></li> <li> - <a class="text-center" href="{% url 'accounts-updates' request.user.username %}?kind=note_added"> + <a class="text-center" href="{% url 'accounts-updates' %}?kind=note_added"> <strong>{% trans "Read All Messages" %}</strong> <i class="icon-chevron-right"></i> </a> </li> @@ -165,7 +165,7 @@ <div class="footer"> <div class="container-fluid"> <ul class="breadcrumb pull-left"> - <li><i class="icon-home"></i> <a href="{% url 'accounts-list_orders' request.user.username %}">{{ request.user.get_full_name }}</a> <span class="divider">/</span></li> + <li><i class="icon-home"></i> <a href="{% url 'accounts-list_orders' %}">{{ request.user.get_full_name }}</a> <span class="divider">/</span></li> {% block crumbs %}{% endblock crumbs %} </ul> <small class="copyright pull-right muted">© {% now "Y" %} First Party Software | <a href="https://docs.servoapp.com/terms/" target="_blank">{% trans "Terms" %}</a></small> diff --git a/servo/templates/search/spotlight.html b/servo/templates/search/spotlight.html index e372b23..3b3715c 100755 --- a/servo/templates/search/spotlight.html +++ b/servo/templates/search/spotlight.html @@ -33,5 +33,5 @@ {% endblock second_column %} {% block footer %} - <li><i class="icon-home"></i> <a href="{% url 'accounts-list_orders' request.user.username %}">{% trans "Home" %}</a> <span class="divider">/</span></li><li class="active">{{ title }}</li> + <li><i class="icon-home"></i> <a href="{% url 'accounts-list_orders' %}">{% trans "Home" %}</a> <span class="divider">/</span></li><li class="active">{{ title }}</li> {% endblock footer %} |