Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from joshuajonah/master
Added flexibility to disable the knowledgebase by using settings.HELPDESK_KB_ENABLED = False.
- Loading branch information
Showing
7 changed files
with
71 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% load i18n %} | ||
{% trans "Powered by <a href='https://github.com/rossp/django-helpdesk'>django-helpdesk</a>." %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
{% load i18n %} | ||
{% if user.is_staff %} | ||
<ul id="dropdown"> | ||
<li><a href='{% url helpdesk_dashboard %}'>{% trans "Dashboard" %}</a></li> | ||
<li><a href='{% url helpdesk_list %}'>{% trans "Tickets" %}</a></li> | ||
<li><a href='{% url helpdesk_submit %}'>{% trans "New Ticket" %}</a></li> | ||
<li><a href='{% url helpdesk_report_index %}'>{% trans "Stats" %}</a></li> | ||
{% if user_saved_queries_ %} | ||
<li class="headerlink"><a>Load Saved Query</a> | ||
<ul> | ||
{% for q in user_saved_queries_ %} | ||
<li><a href="{% url helpdesk_list %}?saved_query={{ q.id }}">{{ q.title }} | ||
{% if q.shared %} | ||
(Shared{% ifnotequal user q.user %} by {{ q.user.username }}{% endifnotequal %}) | ||
{% endif %}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
{% endif %} | ||
<li><a href='{% url logout %}'>{% trans "Logout" %}</a></li> | ||
{% if not query %}<li><form id='searchform' method='get' action='{% url helpdesk_list %}'><input type='text' name='q' size='10' class='input' value='{% trans "Search..." %}' id='search_query' onFocus='s=document.getElementById("search_query");if (s.value == "{% trans "Search..." %}") { s.value = ""; }' title='{% trans "Enter a keyword, or a ticket number to jump straight to that ticket." %}'/><input type='hidden' name='status' value='1' /><input type='hidden' name='status' value='2' /><input type='hidden' name='status' value='3' /><input type='hidden' name='search_type' value='header' />{% csrf_token %}</form></li>{% endif %} | ||
</ul> | ||
{% else %} | ||
<ul> | ||
<li><a href='{% url helpdesk_home %}'>{% trans "Submit A Ticket" %}</a></li> | ||
<li><a href='{% url helpdesk_kb_index %}'>{% trans "Knowledgebase" %}</a></li> | ||
<li><a href='{% url login %}?next={% url helpdesk_dashboard %}'>{% trans "Log In" %}</a></li> | ||
</ul> | ||
{% endif %} | ||
{% if user.is_staff %} | ||
<ul id="dropdown"> | ||
<li><a href='{% url helpdesk_dashboard %}'>{% trans "Dashboard" %}</a></li> | ||
<li><a href='{% url helpdesk_list %}'>{% trans "Tickets" %}</a></li> | ||
<li><a href='{% url helpdesk_submit %}'>{% trans "New Ticket" %}</a></li> | ||
<li><a href='{% url helpdesk_report_index %}'>{% trans "Stats" %}</a></li> | ||
{% if user_saved_queries_ %} | ||
<li class="headerlink"><a>Load Saved Query</a> | ||
<ul> | ||
{% for q in user_saved_queries_ %} | ||
<li><a href="{% url helpdesk_list %}?saved_query={{ q.id }}">{{ q.title }} | ||
{% if q.shared %} | ||
(Shared{% ifnotequal user q.user %} by {{ q.user.username }}{% endifnotequal %}) | ||
{% endif %}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
{% endif %} | ||
<li><a href='{% url logout %}'>{% trans "Logout" %}</a></li> | ||
{% if not query %}<li><form id='searchform' method='get' action='{% url helpdesk_list %}'><input type='text' name='q' size='10' class='input' value='{% trans "Search..." %}' id='search_query' onFocus='s=document.getElementById("search_query");if (s.value == "{% trans "Search..." %}") { s.value = ""; }' title='{% trans "Enter a keyword, or a ticket number to jump straight to that ticket." %}'/><input type='hidden' name='status' value='1' /><input type='hidden' name='status' value='2' /><input type='hidden' name='status' value='3' /><input type='hidden' name='search_type' value='header' />{% csrf_token %}</form></li>{% endif %} | ||
</ul> | ||
{% else %} | ||
<ul> | ||
<li><a href='{% url helpdesk_home %}'>{% trans "Submit A Ticket" %}</a></li> | ||
{% if helpdesk_settings.HELPDESK_KB_ENABLED %}<li><a href='{% url helpdesk_kb_index %}'>{% trans "Knowledgebase" %}</a></li>{% endif %} | ||
<li><a href='{% url login %}?next={% url helpdesk_dashboard %}'>{% trans "Log In" %}</a></li> | ||
</ul> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters