mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Further theme updating changes.
This commit is contained in:
@@ -3,21 +3,27 @@
|
||||
{% block title %}Application Access{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Application Access</h1>
|
||||
</div>
|
||||
|
||||
<p>This is the list of external applications that can access your data stored on Auth, this includes any EVE API data and also any linked information (Reddit accounts, service accounts).</p>
|
||||
|
||||
{% if tokens %}
|
||||
<table>
|
||||
<tr><th>Application</th><th>Granted Date/Time</th><th>Action</th></tr>
|
||||
{% for token in tokens %}
|
||||
<tr>
|
||||
<tr><td>{{ token.consumer.name }}</td><td></td><td><a href="{% url oauth-revoke-token token.key %}">Revoke</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<table class="zebra-striped" id="oauth-keys">
|
||||
<thead>
|
||||
<tr><th>Application</th><th>Granted Date/Time</th><th>Action</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for token in tokens %}
|
||||
<tr>
|
||||
<tr><td>{{ token.consumer.name }}</td><td></td><td><a href="{% url oauth-revoke-token token.key %}">Revoke</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tobdy>
|
||||
</table>
|
||||
{% else %}
|
||||
<p><b>You have not granted any applications access to your data</b></p>
|
||||
<p><b>You have not granted any applications access to your data.</b></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -9,126 +9,115 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<h2>Attributes</h2>
|
||||
<div class="span8">
|
||||
<h2>Attributes</h2>
|
||||
|
||||
<ul>
|
||||
<li><span class="stat">Race:</span> <span class="value">{{ character.get_race_display }}</span></li>
|
||||
<li><span class="stat">Gender:</span> <span class="value">{{ character.get_gender_display }}</span></li>
|
||||
<li><span class="stat">Corporation:</span> <a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.name }}</a></span></li>
|
||||
<li><span class="stat">Joined Corporation:</span> <span class="value">{{ character.corporation_date|date:"Y/m/d H:i:s" }}</span></li>
|
||||
{% if character.corporation.alliance %}
|
||||
<li><span class="stat">Alliance:</span> <span class="value"><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.name }}</a><span></li>
|
||||
{% endif %}
|
||||
<li><span class="stat">Security Status:</span> {{ character.security_status|floatformat:2 }}</span></li>
|
||||
<li><span class="stat">Director:</span> <span class="value">{{ character.director }}</span></li>
|
||||
{% if character.current_training %}
|
||||
<li><spam class="stat">Training:</span> <span class="Value">{{ character.current_training.skill.name}} to Level {{ ch$
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
<ul>
|
||||
<li><span class="stat">Race:</span> <span class="value">{{ character.get_race_display }}</span></li>
|
||||
{% if character.gender %}<li><span class="stat">Gender:</span> <span class="value">{{ character.get_gender_display }}</span></li>{% endif %}
|
||||
<li><span class="stat">Corporation:</span> <a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.name }}</a></span></li>
|
||||
{% if character.corporation.alliance %}<li><span class="stat">Alliance:</span> <span class="value"><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.name }}</a><span></li>{% endif %}
|
||||
<li><span class="stat">Joined Corporation:</span> <span class="value">{{ character.corporation_date|date:"Y/m/d H:i:s" }}</span></li>
|
||||
<li><span class="stat">Security Status:</span> {{ character.security_status|floatformat:2 }}</span></li>
|
||||
<li><span class="stat">Director:</span> <span class="value">{{ character.director }}</span></li>
|
||||
{% if character.current_training %}
|
||||
<li><spam class="stat">Training:</span> <span class="Value">{{ character.current_training.skill.name}} to Level</span></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<div class="span5 offset3">
|
||||
<div class="row pull-right">
|
||||
<img src="https://image.eveonline.com/Character/{{ character.id }}_256.jpg" />
|
||||
</div>
|
||||
<div class="row pull-right">
|
||||
<div class="span2">
|
||||
<div class="row">
|
||||
<span><a href="{% url eveapi-corporation character.corporation.id %}">{{ character.corporation.ticker }}</a></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<img src="https://image.eveonline.com/Corporation/{{ character.corporation.id }}_64.png" class="pull-right"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span2">
|
||||
{% if character.corporation.alliance %}
|
||||
<div class="row">
|
||||
<span><a href="{% url eveapi-alliance character.corporation.alliance.id %}">{{ character.corporation.alliance.ticker }}</a></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<img src="https://image.eveonline.com/Alliance/{{ character.corporation.alliance.id }}_64.png" class="pull-left"/>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="character_stats">
|
||||
<h2>Stats</h2>
|
||||
|
||||
<table>
|
||||
<tr><th>Stat</th><th>Value</th></tr>
|
||||
<tr><td class="stat">Intelligence</td><td> {{ character.attrib_intelligence }}</td></tr>
|
||||
<tr><td class="stat">Memory</td><td>{{ character.attrib_memory }}</td></tr>
|
||||
<tr><td class="stat">Charisma</td><td>{{ character.attrib_charisma }}</td></tr>
|
||||
<tr><td class="stat">Perception</td><td>{{ character.attrib_perception }}</td></tr>
|
||||
<tr><td class="stat">Willpower</td><td>{{ character.attrib_willpower }}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
{% if character.attrib_intelligence %}
|
||||
<h2>Stats</h2>
|
||||
|
||||
<div class="character_skills">
|
||||
<h2>Skills</h2>
|
||||
|
||||
<div class="skill_controls">
|
||||
<a href=#" id="openAll">Open All</a>
|
||||
<a href=#" id="collapseAll">Collapse All</a>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
|
||||
{% for group in skillTree %}
|
||||
{{group.items}}
|
||||
<tr class="skill_heading" id="{{ group.1 }}"><th colspan=2>{{ group.1 }}</th><th>{{ group.0|intcomma }}</th></tr>
|
||||
{% for skill in group.2 %}
|
||||
{% if skill.in_training %}
|
||||
<tr class="child intraining" parent="{{ group.1 }}"><td>{{ skill.skill.name }} - Training to Level {{ skill.in_training }}</td><td><img src="{{ STATIC_URL }}img/skills/level{{ skill.level }}t.gif" alt="Level {{ skill.level }}" /></td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
||||
{% else %}
|
||||
<tr class="child" parent="{{ group.1 }}"><td>{{ skill.skill.name }} </td><td><img src="{{ STATIC_URL }}img/skills/level{{ skill.level }}.gif" alt="Level {{ skill.level }}" /></td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
<tr><th colspan=2>Total SP</th><th>{{ character.total_sp|intcomma }} SP</th></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% if employmenthistory.count %}
|
||||
<div class="character_employmenthistory">
|
||||
<h2>Employment History</h2>
|
||||
|
||||
<table>
|
||||
<tr><th>Corporation</th><th>Join Date</th><th>Leave Date</th></tr>
|
||||
{% for hist in employmenthistory %}
|
||||
<tr><td><a href="{% url eveapi-corporation hist.corporation.id %}">{{ hist.corporation.name }}</a></td><td>{{ hist.start_date }}</td><td>{% if hist.end_date %}{{ hist.end_date }}{% endif %}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Stat</th><th>Value</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Intelligence</td><td> {{ character.attrib_intelligence }}</td></tr>
|
||||
<tr><td>Memory</td><td>{{ character.attrib_memory }}</td></tr>
|
||||
<tr><td>Charisma</td><td>{{ character.attrib_charisma }}</td></tr>
|
||||
<tr><td>Perception</td><td>{{ character.attrib_perception }}</td></tr>
|
||||
<tr><td>Willpower</td><td>{{ character.attrib_willpower }}</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="span5 offset3">
|
||||
<div class="row pull-right">
|
||||
<img src="https://image.eveonline.com/Character/{{ character.id }}_256.jpg" />
|
||||
</div>
|
||||
<div class="row pull-right">
|
||||
<div class="span5">
|
||||
{% if character.corporation.alliance %}
|
||||
<img src="https://image.eveonline.com/Alliance/{{ character.corporation.alliance.id }}_64.png" class="pull-right" title="{{ character.corporation.alliance }} ({{ character.corporation.alliance.ticker }})"/>
|
||||
{% endif %}
|
||||
<img src="https://image.eveonline.com/Corporation/{{ character.corporation.id }}_64.png" class="pull-right" title="{{ character.corporation }} ({{ character.corporation.ticker }})"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% if skillTree %}
|
||||
<h2>Skills</h2>
|
||||
|
||||
<p>
|
||||
<a href=#" id="openAll" class="btn">Open All</a>
|
||||
<a href=#" id="collapseAll" class="btn">Collapse All</a>
|
||||
</p>
|
||||
|
||||
<table>
|
||||
{% for group in skillTree %}
|
||||
{{group.items}}
|
||||
<tr class="fill skill_heading" id="{{ group.1 }}"><th colspan=2>{{ group.1 }}</th><th>{{ group.0|intcomma }} SP</th></tr>
|
||||
{% for skill in group.2 %}
|
||||
{% if skill.in_training %}
|
||||
<tr class="child intraining" parent="{{ group.1 }}"><td>{{ skill.skill.name }} - Training to Level {{ skill.in_training }}</td><td><img src="{{ STATIC_URL }}img/skills/level{{ skill.level }}t.gif" alt="Level {{ skill.level }}" /></td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
||||
{% else %}
|
||||
<tr class="child" parent="{{ group.1 }}"><td>{{ skill.skill.name }} </td><td><img src="{{ STATIC_URL }}img/skills/level{{ skill.level }}.gif" alt="Level {{ skill.level }}" /></td><td>{{ skill.skillpoints|intcomma }} SP</td></tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
<tr><th colspan=2>Total SP</th><th>{{ character.total_sp|intcomma }} SP</th></tr>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if employmenthistory.count %}
|
||||
<h2>Employment History</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Corporation</th><th>Join Date</th><th>Leave Date</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for hist in employmenthistory %}
|
||||
<tr><td><a href="{% url eveapi-corporation hist.corporation.id %}">{{ hist.corporation.name }}</a></td><td>{{ hist.start_date }}</td><td>{% if hist.end_date %}{{ hist.end_date }}{% endif %}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$(".skill_heading")
|
||||
.css("cursor", "pointer")
|
||||
.attr("title", "Click to expand/collapse")
|
||||
.attr("title", "Click to expand/collapse section")
|
||||
.click(function(){
|
||||
$('tr[parent$=' + $(this).attr('id') + ']').toggle();
|
||||
});
|
||||
|
||||
$("#openAll").bind("click", function(e){
|
||||
e.preventDefault();
|
||||
$(".child").show();
|
||||
});
|
||||
|
||||
$("#collapseAll").bind("click", function(e){
|
||||
e.preventDefault();
|
||||
$(".child").hide();
|
||||
});
|
||||
|
||||
$('tr[parent]').hide();
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -2,29 +2,45 @@
|
||||
{% load humanize %}
|
||||
{% block content %}
|
||||
|
||||
<script src="/static/js/jquery.tablesorter.min.js"></script>
|
||||
<script >
|
||||
$(function() {
|
||||
$("table#characters").tablesorter({ sortList: [[0,0]] });
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Your Characters</h1>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
{% if accounts %}
|
||||
{% if characters %}
|
||||
<table class="zebra-striped" id="characters">
|
||||
<thead>
|
||||
<tr><th>Character Name</th><th>Corporation</th><th>Alliance</th><th>Skillpoints</th><th>Training</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in accounts %}
|
||||
{% if acc.characters.count %}
|
||||
<tr><th colspan=5>Key {{ acc.pk }} {% if acc.training == 0 %}<font color="#F87217">(No Character Training)</font>{% endif %}</th></tr>
|
||||
{% for char in acc.characters.all %}
|
||||
<tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td>
|
||||
{% for char in characters %}
|
||||
<tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td>
|
||||
<td><a href="{% url eveapi-corporation char.corporation.id %}">{{ char.corporation }}</a></td>
|
||||
<td>{% if char.corporation.alliance %}<a href="{% url eveapi-alliance char.corporation.alliance.id %}">{{ char.corporation.alliance }}</a>{% endif %}</td>
|
||||
<td style="text-align: right;">{{ char.total_sp|intcomma }} SP</td>
|
||||
<td>{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% for acc in accounts %}
|
||||
{% if acc.training == 0 %}<p><span class="label warning">No Character Training</span> on the account linked to API Key ID {{ acc.api_user_id }}.</p>{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<p>You have no characters available on the API keys provided.</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>You have no API keys linked to your auth account.</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</table>
|
||||
{% paginate %}
|
||||
|
||||
<p><a href="{% url eveapi-corporation-members-csv corporation.id %}">Export as CSV</a></p>
|
||||
<p><a href="{% url eveapi-corporation-members-csv corporation.id %}" class="btn" title="Exports the membership list of this corporation to a CSV file.">Export as CSV</a></p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -41,7 +41,7 @@ def eveapi_add(request, post_save_redirect='/', template='eve_api/add.html'):
|
||||
if out:
|
||||
msg = "Key %d successfully added." % form.cleaned_data['api_user_id']
|
||||
else:
|
||||
msg = "An issue was encountered why trying to import key %s, please recheck and try again." % form.cleaned_data['api_user_id']
|
||||
msg = "An issue was encountered while trying to import key %s, Please check that you are using the correct information and try again." % form.cleaned_data['api_user_id']
|
||||
messages.success(request, msg, fail_silently=True)
|
||||
return redirect(post_save_redirect)
|
||||
else:
|
||||
@@ -183,7 +183,8 @@ def eveapi_character(request, charid=None, template='eve_api/character.html', li
|
||||
return render_to_response(template, context, context_instance=RequestContext(request))
|
||||
|
||||
context = {
|
||||
'accounts': EVEAccount.objects.select_related('characters', 'characters__corporation', 'characters__corporation__alliance').filter(user=request.user),
|
||||
'accounts': EVEAccount.objects.select_related('characters__name').filter(user=request.user).exclude(api_keytype=API_KEYTYPE_CORPORATION),
|
||||
'characters': EVEPlayerCharacter.objects.filter(eveaccount__user=request.user).distinct().order_by('name'),
|
||||
}
|
||||
return render_to_response(list_template, context, context_instance=RequestContext(request))
|
||||
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
{% block title %}Create Application{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>New Application</h1>
|
||||
</div>
|
||||
|
||||
<p>Select the character you wish to apply with, then the corporation you wish to apply for.</p>
|
||||
|
||||
<form action="{% url hr-addapplication %}" method="post">
|
||||
@@ -10,6 +15,6 @@
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Apply" />
|
||||
<input type="submit" value="Create Application" class="btn primary"/>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>Search All Applications</h1>
|
||||
<div class="page-header">
|
||||
<h1>All Applications</h1>
|
||||
</div>
|
||||
|
||||
<form method="GET" action="{% url hr-admin %}">
|
||||
<input type="text" name="q" />
|
||||
<input type="submit" value="Search" />
|
||||
<input type="text" name="q" placeholder="Search..."/>
|
||||
</form>
|
||||
|
||||
{% if apps %}
|
||||
|
||||
@@ -9,146 +9,179 @@
|
||||
{% block title %}View Application{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Application Details</h3>
|
||||
<div class="page-header">
|
||||
<h1>Application - {{ app.character }} to {{ app.corporation }} </h1>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li>Applying Auth User: <a href="{% url sso.views.user_view app.user %}">{{ app.user }}</a></li>
|
||||
<li>Applying Character: <a href="{% url eve_api.views.eveapi_character app.character.id %}">{{ app.character }}</a></li>
|
||||
<li>Applying To: <a href="{% url eve_api.views.eveapi_corporation app.corporation.id %}">{{ app.corporation }}</a></li>
|
||||
<li>Application Status: <b>{{ app.get_status_display }}</b></li>
|
||||
<li>Application Status: {{ app.get_status_display }}</li>
|
||||
{% if hrstaff %}
|
||||
<li>Blacklist Status: <b>{% if app.blacklisted %}<font color='red'>BLACKLISTED</font>{% else %}<font color='geen'>OK</font>{% endif %}</b></li>
|
||||
<li>Blacklist Status: <b>{% if app.blacklisted %}<span class="label important">>BLACKLISTED</span>{% else %}<span class="label success">OK</span>{% endif %}</b></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
{% ifnotequal app.status 5 %}
|
||||
{% ifnotequal app.status 2 %}
|
||||
<h3>Actions</h3>
|
||||
<div class="skill_controls">
|
||||
|
||||
<p>
|
||||
{% if app.status < 1 %}
|
||||
<a href="{% url hr-updateapplication app.id 1 %}">Submit Application</a>
|
||||
<a class="btn success" href="{% url hr-updateapplication app.id 1 %}">Submit Application</a>
|
||||
{% else %}
|
||||
<a href="{% url hr-updateapplication app.id 0 %}">Withdraw Application</a>
|
||||
<a class="btn" href="{% url hr-updateapplication app.id 0 %}">Withdraw Application</a>
|
||||
{% endif %}
|
||||
<a href="{% url hr-addmessage app.id %}">Add Message</a>
|
||||
<a class="btn" href="{% url hr-addmessage app.id %}">Add Message</a>
|
||||
{% if hrstaff %}
|
||||
<a href="{% url hr-addnote app.id %}">Add Staff Note</a>
|
||||
<a class="btn" href="{% url hr-addnote app.id %}">Add Staff Note</a>
|
||||
{% if app.status < 2 or app.status = 4 or app.status = 6 %}
|
||||
{% if perms.hr.can_accept %}
|
||||
<a href="{% url hr-rejectapplication app.id %}">Reject Application</a>
|
||||
<a class="btn error" href="{% url hr-rejectapplication app.id %}">Reject Application</a>
|
||||
{% ifequal app.blacklisted 0 %}
|
||||
<a href="{% url hr-acceptapplication app.id %}">Accept Application</a>
|
||||
<a class="btn success" href="{% url hr-acceptapplication app.id %}">Accept Application</a>
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% ifnotequal app.status 4 %}
|
||||
<a href="{% url hr-updateapplication app.id 4 %}">Mark as In Query</a>
|
||||
<a class="btn" href="{% url hr-updateapplication app.id 4 %}">Mark as In Query</a>
|
||||
{% endifnotequal %}
|
||||
{% ifnotequal app.status 6 %}
|
||||
<a href="{% url hr-updateapplication app.id 6 %}">Flag for Review</a>
|
||||
<a class="btn" href="{% url hr-updateapplication app.id 6 %}">Flag for Review</a>
|
||||
{% endifnotequal %}
|
||||
{% endif %}
|
||||
{% ifequal app.status 3 %}
|
||||
<a href="{% url hr-updateapplication app.id 5 %}">Mark as Complete</a>
|
||||
<a class="btn success" href="{% url hr-updateapplication app.id 5 %}">Mark as Complete</a>
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
{% endifnotequal %}
|
||||
{% endifnotequal %}
|
||||
|
||||
{% if audit %}
|
||||
<h3>Event Log</h3>
|
||||
<table width="100%">
|
||||
<tr><th width="50px">Event Type</th><th width="75px">User</th><th width="50px">Date</th><th>Event Details</th></tr>
|
||||
{% for a in audit %}
|
||||
<tr><td>{{ a.get_event_display }}</td><td>{{ a.user }}</td><td>{{ a.date|date:"Y/m/d H:i:s" }}</td><td>{{ a.text|linebreaks }}</td></tr>
|
||||
{% endfor %}
|
||||
|
||||
<table class="zebra-striped">
|
||||
<thead>
|
||||
<tr><th width="50px">Event Type</th><th width="75px">User</th><th width="50px">Date</th><th>Event Details</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for a in audit %}
|
||||
<tr><td>{{ a.get_event_display }}</td><td>{{ a.user }}</td><td>{{ a.date|date:"Y/m/d H:i:s" }}</td><td>{{ a.text|linebreaks }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if hrstaff %}
|
||||
{% if app.blacklist_values %}
|
||||
<h3>Blacklist Triggers</h3>
|
||||
<table>
|
||||
<tr><th>Blacklist Type</th><th>Blacklisted Value</th><th>Level</th><th>Reason</th><th>Source</th></tr>
|
||||
{% for a in app.blacklist_values %}
|
||||
<tr><td>{{ a.get_type_display }}</td><td>{{ a.value }}</td><td>{{ a.get_level_display }}</td><td>{{ a.reason }}</td><td>{{ a.source }}</td></tr>
|
||||
{% endfor %}
|
||||
|
||||
<table class="zebra-striped">
|
||||
<thead>
|
||||
<tr><th>Blacklist Type</th><th>Blacklisted Value</th><th>Level</th><th>Reason</th><th>Source</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for a in app.blacklist_values %}
|
||||
<tr><td>{{ a.get_type_display }}</td><td>{{ a.value }}</td><td>{{ a.get_level_display }}</td><td>{{ a.reason }}</td><td>{{ a.source }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if app.recommendation_set.all %}
|
||||
<h3>Recommendations</h3>
|
||||
<table>
|
||||
<tr><th>User</th><th>Character</th><th>Corporation</th><th>Valid Recommendation</th><th>Total User Recomendations</th></tr>
|
||||
{% for rec in app.recommendation_set.all %}
|
||||
<tr><td><a href="{% url sso.views.user_view rec.user %}">{{ rec.user }}</a></td>
|
||||
<td><a href="{% url eve_api.views.eveapi_character rec.user_character.id %}">{{ rec.user_character }}</a></td>
|
||||
<td><a href="http://evemaps.dotlan.net/corp/{{ rec.user_character.corporation.name }}">{{ rec.user_character.corporation }}</a></td>
|
||||
<td>{% if rec.is_valid %}<font color="green">Yes</font>{% else %}<font color="red">No</font>{% endif %}</td>
|
||||
<td>{{ rec.user.recommendation_set.all.count }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
<table class="zebra-striped">
|
||||
<thead>
|
||||
<tr><th>User</th><th>Character</th><th>Corporation</th><th>Valid Recommendation</th><th>Total User Recomendations</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for rec in app.recommendation_set.all %}
|
||||
<tr><td><a href="{% url sso.views.user_view rec.user %}">{{ rec.user }}</a></td>
|
||||
<td><a href="{% url eve_api.views.eveapi_character rec.user_character.id %}">{{ rec.user_character }}</a></td>
|
||||
<td><a href="http://evemaps.dotlan.net/corp/{{ rec.user_character.corporation.name }}">{{ rec.user_character.corporation }}</a></td>
|
||||
<td>{% if rec.is_valid %}<font color="green">Yes</font>{% else %}<font color="red">No</font>{% endif %}</td>
|
||||
<td>{{ rec.user.recommendation_set.all.count }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if hrstaff %}
|
||||
{% if app.corporation.application_config.api_view %}
|
||||
<h3>API Keys</h3>
|
||||
|
||||
<table>
|
||||
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th></tr>
|
||||
{% for acc in app.user.eveaccount_set.all %}
|
||||
<tr><td>{{ acc.api_user_id }}</td>
|
||||
<td>{{ acc.api_key }}</td>
|
||||
<td>{{ acc.description }}</td>
|
||||
<td>{{ acc.get_api_keytype_display }}</td>
|
||||
<td id="api-status-{{ acc.api_user_id }}">{{ acc.get_api_status_display }}</td>
|
||||
<td id="api-time-{{ acc.api_user_id }}">{{ acc.api_last_updated|naturaltimediff }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<thead>
|
||||
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in app.user.eveaccount_set.all %}
|
||||
<tr><td>{{ acc.api_user_id }}</td>
|
||||
<td>{{ acc.api_key }}</td>
|
||||
<td>{{ acc.description }}</td>
|
||||
<td>{{ acc.get_api_keytype_display }}</td>
|
||||
<td id="api-status-{{ acc.api_user_id }}">{{ acc.get_api_status_display }}</td>
|
||||
<td id="api-time-{{ acc.api_user_id }}">{{ acc.api_last_updated|naturaltimediff }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
<h3>EVE Characters</h3>
|
||||
<table>
|
||||
<tr><th>Character</th><th>Corp / Alliance</th><th>ISK</th><th>SP</th><th>Training</th><th>Links</th></tr>
|
||||
{% for acc in app.user.eveaccount_set.all %}
|
||||
{% for char in acc.characters.all %}
|
||||
<tr><td><a href="{% url eve_api.views.eveapi_character char.id %}">{{ char.name }}</a></td>
|
||||
<td><a href="http://evemaps.dotlan.net/corp/{{ char.corporation }}">{{ char.corporation }}</a>{% if char.corporation.alliance %} /
|
||||
|
||||
<table class="zebra-striped" id="characters">
|
||||
<thead>
|
||||
<tr><th>Character</th><th>Corp / Alliance</th><th>ISK</th><th>SP</th><th>Training</th><th>Links</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in app.user.eveaccount_set.all %}
|
||||
{% for char in acc.characters.all %}
|
||||
<tr><td><a href="{% url eve_api.views.eveapi_character char.id %}">{{ char.name }}</a></td>
|
||||
<td><a href="http://evemaps.dotlan.net/corp/{{ char.corporation }}">{{ char.corporation }}</a>{% if char.corporation.alliance %} /
|
||||
<a href="http://evemaps.dotlan.net/alliance/{{ char.corporation.alliance }}">{{ char.corporation.alliance }}</a>{% endif %}
|
||||
</td>
|
||||
<td style="text-align: right;">{{ char.balance|intcomma }} ISK</td>
|
||||
<td style="text-align: right;">{{ char.total_sp|intcomma }} SP</td>
|
||||
<td>{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}</td>
|
||||
<td>{% if request.is_igb %}<a href="javascript:CCPEVE.showInfo(1377, {{ char.id }})">Show In Eve</a> / {% endif %}<a href="https://gate.eveonline.com/Profile/{{ char.name }}/">EveGate Profile</a> / <a href="http://eve-search.com/search/author/{{ char.name }}">EveSearch</a> / <a href="https://forums.eveonline.com/default.aspx?g=search&postedby={{ char.name}}">EVEGate Forums</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td style="text-align: right;">{{ char.balance|intcomma }} ISK</td>
|
||||
<td style="text-align: right;">{{ char.total_sp|intcomma }} SP</td>
|
||||
<td>{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}</td>
|
||||
<td>{% if request.is_igb %}<a href="javascript:CCPEVE.showInfo(1377, {{ char.id }})">Show In Eve</a> / {% endif %}<a href="https://gate.eveonline.com/Profile/{{ char.name }}/">EveGate Profile</a> / <a href="http://eve-search.com/search/author/{{ char.name }}">EveSearch</a> / <a href="https://forums.eveonline.com/default.aspx?g=search&postedby={{ char.name}}">EVEGate Forums</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
{% if "reddit"|installed %}
|
||||
{% ifswitch reddit %}
|
||||
{% if app.user.redditaccount_set.all %}
|
||||
<h3>Reddit Accounts</h3>
|
||||
<table>
|
||||
<tr><th>Account</th><th>Karma</th><th>Validated</th><th>Creation Date</th><th>Matches Criteria?</th><th>Links</th></tr>
|
||||
{% for acc in app.user.redditaccount_set.all %}
|
||||
<tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
|
||||
<td>{{ acc.link_karma }} / {{ acc.comment_karma }}</td>
|
||||
<td>{% if acc.validated %}Validated{%else %}<b>NOT VALIDATED</b>{% endif %}</td>
|
||||
<td>{{ acc.date_created }}</td>
|
||||
<td>{% if acc.is_valid %}<font color="green">Yes</font>{% else %}<font color="red">No</font>{% endif %}</td>
|
||||
<td><a href="http://metareddit.com/stalk?user={{ acc.username}}">Metareddit</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
<table class="zebra-striped" id="reddit">
|
||||
<thead>
|
||||
<tr><th>Account</th><th>Karma</th><th>Validated</th><th>Creation Date</th><th>Matches Criteria?</th><th>Links</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in app.user.redditaccount_set.all %}
|
||||
<tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
|
||||
<td>{{ acc.link_karma }} / {{ acc.comment_karma }}</td>
|
||||
<td>{% if acc.validated %}<span class="label success">Validated</span>{%else %}<span class="label warning">NOT VALIDATED</span>{% endif %}</td>
|
||||
<td>{{ acc.date_created }}</td>
|
||||
<td>{% if acc.is_valid %}<font color="green">Yes</font>{% else %}<font color="red">No</font>{% endif %}</td>
|
||||
<td><a href="http://metareddit.com/stalk?user={{ acc.username}}">Metareddit</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h3>Recent Reddit Posts</h3>
|
||||
|
||||
<span id="loadlink">
|
||||
<a href="javascript:redditposts()">Load recent Reddit posts</a>
|
||||
<a href="javascript:redditposts()" class="btn">Load recent Reddit posts</a>
|
||||
</span>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -3,20 +3,29 @@
|
||||
{% block title %}Applications{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>This list shows your current open applications</p>
|
||||
|
||||
<div class="page-header">
|
||||
<h1>You Applications</h1>
|
||||
</div>
|
||||
|
||||
{% if applications %}
|
||||
<table>
|
||||
<tr><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
|
||||
{% for app in applications %}
|
||||
<tr><td><a href="{% url hr-viewapplication app.id %}">{{ app.id }}</a></td>
|
||||
<p>This is a list of all your applications. The current status of each application is shown in the Application Status field.</p>
|
||||
|
||||
<table class="zebra-striped" id="applications">
|
||||
<tr><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
|
||||
{% for app in applications %}
|
||||
<tr><td><a href="{% url hr-viewapplication app.id %}">{{ app.id }}</a></td>
|
||||
<td>{{ app.character }}</td>
|
||||
<td>{{ app.corporation }}</td>
|
||||
<td>{{ app.get_status_display }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% else %}
|
||||
<p>You have no current applications</p>
|
||||
{% endif %}
|
||||
|
||||
<p><a href="{% url hr-addapplication %}" class="btn">Apply to a corporation</a></p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -2,15 +2,17 @@
|
||||
{% block title %}Add Blacklist Entry{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Add Blacklist Entry</h1>
|
||||
<div class="page-header">
|
||||
<h1>Add Blacklist Entry</h1>
|
||||
</div>
|
||||
|
||||
<form action="{% url hr-blacklist-add %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
|
||||
<input type="submit" value="Blacklist" />
|
||||
<input type="submit" value="Add Blacklist" class="btn primary"/>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -3,22 +3,24 @@
|
||||
{% block title %}Blacklist{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Blacklist</h1>
|
||||
<div class="page-header">
|
||||
<h1>Blacklist</h1>
|
||||
</div>
|
||||
|
||||
{% if object_list %}
|
||||
<form method="get" action="{% url hr-blacklist-list %}">
|
||||
<label for="query">Search:</label>
|
||||
<input type="text" name="q" id="query" value="{% if query %}{{ query }}{% endif %}"/>
|
||||
<input type="text" name="q" id="query" value="{% if query %}{{ query }}{% endif %}" placeholder="Search..."/>
|
||||
</form>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<th>ID</th><th>Type</th><th>Value</th><th>Level</th><th>Reason</th><th>Expiry</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for obj in object_list %}
|
||||
<tr><td>{{ obj.id }}</td><td>{{ obj.get_type_display }}</td><td>{{ obj.value }}</td><td>{{ obj.get_level_display }}</td><td>{{ obj.reason }}</td><td>{{ obj.expiry_date }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<thead>
|
||||
<th>ID</th><th>Type</th><th>Value</th><th>Level</th><th>Reason</th><th>Expiry</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for obj in object_list %}
|
||||
<tr><td>{{ obj.id }}</td><td>{{ obj.get_type_display }}</td><td>{{ obj.value }}</td><td>{{ obj.get_level_display }}</td><td>{{ obj.reason }}</td><td>{{ obj.expiry_date }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% if is_paginated %}
|
||||
@@ -37,7 +39,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if perms.hr.add_blacklist %}
|
||||
<p><a href="{% url hr-blacklist-add %}">Add a blacklist entry</a></p>
|
||||
<p><a href="{% url hr-blacklist-add %}" class="btn">Add a blacklist entry</a></p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -3,24 +3,34 @@
|
||||
{% block title %}HR{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<H1>HR</H1>
|
||||
<div class="page-header">
|
||||
<H1>HR</H1>
|
||||
</div>
|
||||
|
||||
<h3>Applications</h3>
|
||||
<p><a href="{% url hr-userapplications %}">View your current open applications</a><br/>
|
||||
<a href="{% url hr-addapplication %}">Create a application</a><br/></p>
|
||||
<p>
|
||||
<ul>
|
||||
<li><a href="{% url hr-userapplications %}">View your current open applications</a></li>
|
||||
<li><a href="{% url hr-addapplication %}">Create a application</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
{% if can_recommend %}
|
||||
<h3>Recommendations</h3>
|
||||
<p>
|
||||
<a href="{% url hr-viewrecommendations %}">View your current open recommendations</a><br/>
|
||||
<a href="{% url hr-addrecommendation %}">Add a recommendation</a><br/>
|
||||
<ul>
|
||||
<li><a href="{% url hr-viewrecommendations %}">View your current open recommendations</a></li>
|
||||
<li><a href="{% url hr-addrecommendation %}">Add a recommendation</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if is_hr_staff %}
|
||||
<h3>HR Admin</h3>
|
||||
<p>
|
||||
<a href="{% url hr-admin %}">View applications</a><br/>
|
||||
<ul>
|
||||
<li><a href="{% url hr-admin %}">View applications</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
{% block title %}Add Recommendation{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Add Recommendation<h1>
|
||||
</div>
|
||||
|
||||
<p>Select a character you wish to recommend from, then select your friend's current application.
|
||||
|
||||
The person you are recommending needs to have created their application before you can add a recommendation.</p>
|
||||
|
||||
@@ -3,24 +3,31 @@
|
||||
{% block title %}Recommendations{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<script src="/static/js/jquery.tablesorter.min.js"></script>
|
||||
|
||||
<p>This list shows your current open recommendations that are yet to be submitted, as
|
||||
soon as the recommended user submits their application your recommendation will be removed from this list.</p>
|
||||
{% if recommendations %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Recommender</th><th>Recommended Application</th><th>Application Status</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for rec in recommendations %}
|
||||
<tr><td>{{ rec.user_character }}</td>
|
||||
<td>{{ rec.application }}</td>
|
||||
<td>{{ rec.application.get_status_display }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{% endfor %}
|
||||
<table class="zebra-striped" id="recommendations">
|
||||
<thead>
|
||||
<tr><th>Recommender</th><th>Recommended Application</th><th>Application Status</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for rec in recommendations %}
|
||||
<tr><td>{{ rec.user_character }}</td>
|
||||
<td>{{ rec.application }}</td>
|
||||
<td>{{ rec.application.get_status_display }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>You have no current recommendations</p>
|
||||
{% endif %}
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("table#recommendations").tablesorter({ sortList: [[0,0]] });
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -99,12 +99,12 @@ class UserLookupForm(forms.Form):
|
||||
choices = [(1, "Auth Username"),
|
||||
(2, "Character"),
|
||||
(4, "Email Address"),
|
||||
(5, "EVE API User ID"), ]
|
||||
(5, "EVE API Key ID"), ]
|
||||
if installed('reddit') and gargoyle.is_active('reddit', request):
|
||||
choices.append((3, "Reddit ID"))
|
||||
|
||||
self.fields['type'] = forms.ChoiceField(label=u'Search type', choices=choices)
|
||||
self.fields['username'] = forms.CharField(label=u'User ID', max_length=64)
|
||||
self.fields['username'] = forms.CharField(label=u'Value', max_length=64)
|
||||
|
||||
|
||||
class APIPasswordForm(forms.Form):
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>{{user.username}}'s Profile</h1>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<li><b>Username:</b> {{ user.username }}</li>
|
||||
@@ -19,81 +21,90 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<div class="skill_controls">
|
||||
<a href="{% url sso.views.refresh_access user.id %}">Update Access</a>
|
||||
<a href="{% url sso.views.refresh_access user.id %}" class="btn error">Update Access</a>
|
||||
{% if "hr"|installed %}
|
||||
{% if perms.hr.add_blacklist %}
|
||||
<a href="{% url hr-blacklistuser user.id %}">Blacklist User</a>
|
||||
<a href="{% url hr-blacklistuser user.id %}" class="btn error">Blacklist User</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<br/>
|
||||
{% if services %}
|
||||
<h2>Service Accounts</h2>
|
||||
<table>
|
||||
<tr><th>Service</th><th>Username</th><th>Active</th></tr>
|
||||
{% for acc in services %}
|
||||
<tr><td>{{ acc.service }}</td>
|
||||
<td>{{ acc.service_uid }}</td>
|
||||
<td>{% if acc.active %}Yes{% else %}No{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<section id="services">
|
||||
<h2>Service Accounts</h2>
|
||||
|
||||
<table>
|
||||
<tr><th>Service</th><th>Username</th><th>Active</th></tr>
|
||||
{% for acc in services %}
|
||||
<tr><td>{{ acc.service }}</td>
|
||||
<td>{{ acc.service_uid }}</td>
|
||||
<td>{% if acc.active %}Yes{% else %}No{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<br/>
|
||||
{% if user.application_set.all %}
|
||||
<h2>Applications</h2>
|
||||
<table>
|
||||
<tr><th>ID</th><th>Character</th><th>Applied To</th><th>Status</th></tr>
|
||||
{% for app in user.application_set.all %}
|
||||
<tr><td><a href="{% url hr-viewapplication app.id %}">{{ app.id }}</a></td>
|
||||
<td>{{ app.character }}</td>
|
||||
<td>{{ app.corporation }}</td>
|
||||
<td>{{ app.get_status_display }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<section id="applications">
|
||||
<h2>Applications</h2>
|
||||
|
||||
<table class="zebra-striped">
|
||||
<tr><th>ID</th><th>Character</th><th>Applied To</th><th>Status</th></tr>
|
||||
{% for app in user.application_set.all %}
|
||||
<tr><td><a href="{% url hr-viewapplication app.id %}">{{ app.id }}</a></td>
|
||||
<td>{{ app.character }}</td>
|
||||
<td>{{ app.corporation }}</td>
|
||||
<td>{{ app.get_status_display }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% if user.recommendation_set.all %}
|
||||
<br />
|
||||
<h2>Recommendations</h2>
|
||||
<table>
|
||||
<tr><th>Recommended Application</th><th>Recommendation Character</th><th>Recommendation Date</th></tr>
|
||||
{% for rec in user.recommendation_set.all %}
|
||||
<tr><td><a href="{% url hr-viewapplication rec.application.id %}">{{ rec.application.character.name }}</a></td>
|
||||
<td>{{ rec.user_character }}</td>
|
||||
<td>{{ rec.recommendation_date }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<section id="recommendations">
|
||||
<h2>Recommendations</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Recommended Application</th><th>Recommendation Character</th><th>Recommendation Date</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for rec in user.recommendation_set.all %}
|
||||
<tr><td><a href="{% url hr-viewapplication rec.application.id %}">{{ rec.application.character.name }}</a></td>
|
||||
<td>{{ rec.user_character }}</td>
|
||||
<td>{{ rec.recommendation_date }}</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% if perms.sso.can_view_users %}
|
||||
<br/>
|
||||
<h2>Eve API Keys</h2>
|
||||
{% if user.eveaccount_set.all %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in user.eveaccount_set.all %}
|
||||
<tr><td>{{ acc.api_user_id }}</td>
|
||||
<td>{{ acc.api_key }}</td>
|
||||
<td>{{ acc.description }}</td>
|
||||
<td>{{ acc.get_api_keytype_display }}</td>
|
||||
<td>{{ acc.get_api_status_display }}</td>
|
||||
<td>{{ acc.api_last_updated|naturaltimediff }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<section id="api">
|
||||
<h2>Eve API Keys</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in user.eveaccount_set.all %}
|
||||
<tr><td>{{ acc.api_user_id }}</td>
|
||||
<td>{{ acc.api_key }}</td>
|
||||
<td>{{ acc.description }}</td>
|
||||
<td>{{ acc.get_api_keytype_display }}</td>
|
||||
<td>{{ acc.get_api_status_display }}</td>
|
||||
<td>{{ acc.api_last_updated|naturaltimediff }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<br/>
|
||||
{% if user.eveaccount_set.all %}
|
||||
<table>
|
||||
<tr><th>Character Name</th><th>Corp</th></tr>
|
||||
@@ -110,22 +121,23 @@
|
||||
|
||||
{% if "reddit"|installed %}
|
||||
{% ifswitch reddit %}
|
||||
<br/>
|
||||
<h2>Reddit Accounts</h2>
|
||||
{% if user.redditaccount_set.all %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Username</th><th>Created Date</th><th>Validated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in user.redditaccount_set.all %}
|
||||
<tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
|
||||
<td>{{ acc.date_created }}</td>
|
||||
<td>{% if acc.validated %}Yes{% else %}No{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<section id="reddit">
|
||||
<h2>Reddit Accounts</h2>
|
||||
{% if user.redditaccount_set.all %}
|
||||
<table class="zebra-striped">
|
||||
<thead>
|
||||
<tr><th>Username</th><th>Created Date</th><th>Validated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in user.redditaccount_set.all %}
|
||||
<tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
|
||||
<td>{{ acc.date_created }}</td>
|
||||
<td>{% if acc.validated %}Yes{% else %}No{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endifswitch %}
|
||||
{% endif %}
|
||||
|
||||
@@ -3,13 +3,29 @@
|
||||
{% block title %}User Lookup{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>User Lookup</h1>
|
||||
<div class="page-header">
|
||||
<h1>Search / User Lookup</h1>
|
||||
</div>
|
||||
<p>This will search Auth's database for any users matching the values you provide.</p>
|
||||
|
||||
<p>
|
||||
<form action="{% url sso.views.user_lookup %}" method="post">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<br />
|
||||
<input type="submit" value="Lookup" />
|
||||
<formset>
|
||||
{% csrf_token %}
|
||||
<div class="clearfix">
|
||||
{{ form.type.label_tag }}
|
||||
<div class="input">
|
||||
{{ form.type }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
{{ form.username.label_tag }}
|
||||
<div class="input">
|
||||
{{ form.username }}
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" value="Lookup" class="btn primary"/>
|
||||
</formset>
|
||||
</form>
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<li><a href="#reddit">Reddit</a></li>
|
||||
{% endifswitch %}
|
||||
{% endif %}
|
||||
<li><a href="#services">Services</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="pill-content">
|
||||
@@ -32,30 +31,20 @@
|
||||
<div class="active" id="overview">
|
||||
<p>
|
||||
<b>Username:</b> {{ user.username }}<br/>
|
||||
<b>Email:</b> {{ user.email }}<br/>
|
||||
<b>Primary Character:</b> {{ user.get_profile.primary_character }}<br/>
|
||||
<b>Email:</b> {{ user.email }} (<a href="{% url sso.views.email_change %}">change</a>)<br/>
|
||||
<b>Primary Character:</b> {{ user.get_profile.primary_character }} (<a href="{% url sso.views.primarychar_change %}">change</a>)<br/>
|
||||
<b>Groups:</b> {{ user.groups.all|join:", " }}<br/>
|
||||
</p>
|
||||
<h2>Passwords</h2>
|
||||
<p>
|
||||
<a href="{% url sso.views.refresh_access %}" class="btn">Update Access</a>
|
||||
<a href="{% url django.contrib.auth.views.password_change %}" class="btn">Change Password</a>
|
||||
<a href="{% url sso.views.email_change %}" class="btn">Change E-mail</a>
|
||||
<a href="{% url sso.views.primarychar_change %}" class="btn">Change Primary Character</a>
|
||||
<a href="{% url django.contrib.auth.views.password_change %}" class="btn">Change Auth Login Password</a>
|
||||
<a href="{% url sso.views.set_apipasswd %}" class="btn">Change Services Password</a><br/><br/>
|
||||
<span class="label info">Note</span> Changing your services password will change it for all linked sites (forums, wiki, reimbursement tool)
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Services Tabs -->
|
||||
<div id="services">
|
||||
<h2>Auth API Services</h2>
|
||||
<p>Auth API Servies use Auth for your login information with the use of a seperate password. To reset your services password click the link below</p>
|
||||
|
||||
<p><a href="{% url sso.views.set_apipasswd %}" class="btn">Change External Services Password</a></p>
|
||||
|
||||
<br/>
|
||||
|
||||
{% if user.eveaccount_set.all %}
|
||||
<h2>Service Accounts</h2>
|
||||
<p>Services not fully integrated into Auth, and which a seperate username/password is required.</p>
|
||||
<p>These are services that cannot talk to auth and require a seperate username/password.</p>
|
||||
{% if user.serviceaccount_set.all %}
|
||||
<table>
|
||||
<tr><th>Service</th><th>Username</th><th>URL</th><th>Active</th><th>Actions</th></tr>
|
||||
@@ -119,7 +108,9 @@
|
||||
<p>
|
||||
{% ifswitch api-disableprocessing %}
|
||||
{% else %}
|
||||
<a href="{% url eve_api.views.eveapi_add %}" class="btn">Add a Eve API key</a>
|
||||
<a href="{% url eve_api.views.eveapi_add %}" class="btn primary" title="Adds a new EVE API key to your account">Add a Eve API key</a>
|
||||
<a href="https://support.eveonline.com/api/Key/CreatePredefined/59638024/0/false" class="btn" title="Create a API key with all the permissions Auth needs">Create API Key</a>
|
||||
<a href="{% url sso.views.refresh_access %}" class="btn {% if not user.eveaccount_set.all %}disabled{% else %}danger{% endif %}" title="Forces auth to recheck your permissions and update your services as needed">Force Access Update</a>
|
||||
{% endifswitch %}
|
||||
</p>
|
||||
|
||||
|
||||
@@ -2,25 +2,29 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>TEST Auth</title>
|
||||
<title>Auth</title>
|
||||
<link rel="stylesheet" href="{{ STATIC_URL }}bootstrap/bootstrap.css" type="text/css" media="screen">
|
||||
<style type="text/css">
|
||||
html {
|
||||
background-color: #9FB190;
|
||||
background-color: #D8DDE8;
|
||||
//background-color: #9FB190;
|
||||
}
|
||||
body {
|
||||
background-color: #9FB190;
|
||||
//background-color: #9FB190;
|
||||
background-color: #D8DDE8;
|
||||
padding-top: 40px;
|
||||
}
|
||||
div.topbar div.fill {
|
||||
background-color: #5F6757;
|
||||
background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#5F6757));
|
||||
background-image: -moz-linear-gradient(top, #333333, #5F6757);
|
||||
background-image: -ms-linear-gradient(top, #333333, #5F6757);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #5F6757));
|
||||
background-image: -webkit-linear-gradient(top, #333333, #5F6757);
|
||||
background-image: -o-linear-gradient(top, #333333, #5F6757);
|
||||
background-image: linear-gradient(top, #333333, #5F6757);
|
||||
//background-color: #5F6757;
|
||||
background-color: #204066;
|
||||
background-image: url(https://forum.pleaseignore.com/public/style_images/master/branding_bg.png);
|
||||
//background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#5F6757));
|
||||
//background-image: -moz-linear-gradient(top, #333333, #5F6757);
|
||||
//background-image: -ms-linear-gradient(top, #333333, #5F6757);
|
||||
//background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #5F6757));
|
||||
//background-image: -webkit-linear-gradient(top, #333333, #5F6757);
|
||||
//background-image: -o-linear-gradient(top, #333333, #5F6757);
|
||||
//background-image: linear-gradient(top, #333333, #5F6757);
|
||||
}
|
||||
div.content {
|
||||
background-color: white;
|
||||
@@ -43,19 +47,14 @@
|
||||
<div class="topbar">
|
||||
<div class="fill">
|
||||
<div class="container">
|
||||
<a class="brand" href="/">TEST Auth</a>
|
||||
<a class="brand" href="/">Auth</a>
|
||||
<ul class="nav">
|
||||
{% if request.user.is_authenticated %}
|
||||
|
||||
<li class="dropdown" data-dropdown="dropdown"><a href="#" class="dropdown-toggle">{{ request.user.username}}</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{% url sso.views.profile %}">Your Profile</a></li>
|
||||
{% if "groups"|installed %}<li><a href="{% url groups.views.group_list %}"> Your Groups</a></li>{% endif %}
|
||||
<li><a href="{% url eve_api.views.eveapi_character %}">Your Characters</a></li>
|
||||
<li class="divider"></li>
|
||||
{% if "api"|installed %}<li><a href="{% url oauth-list-tokens %}">3rd Party App Access</a></li>{% endif %}
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{% url sso.views.profile %}">Your Profile</a></li>
|
||||
{% if "groups"|installed %}<li><a href="{% url groups.views.group_list %}"> Your Groups</a></li>{% endif %}
|
||||
<li><a href="{% url eve_api.views.eveapi_character %}">Your Characters</a></li>
|
||||
{% if "api"|installed %}<li><a href="{% url oauth-list-tokens %}">3rd Party App Access</a></li>{% endif %}
|
||||
{% if "hr"|installed %}
|
||||
<li><a href="{% url hr-index %}">HR</a></li>
|
||||
{% endif %}
|
||||
@@ -69,8 +68,6 @@
|
||||
<li><a href="{% url sentry %}">Sentry</a></li>
|
||||
{% endif %}
|
||||
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url django.contrib.auth.views.login %}">Login</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -9,19 +9,22 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Login</h1>
|
||||
</div>
|
||||
|
||||
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
||||
<fieldset>
|
||||
<legend>Login</legend>
|
||||
<div class="clearfix">
|
||||
{{ form.username.label_tag }}
|
||||
<div class="input">
|
||||
<td>{{ form.username }}</td>
|
||||
{{ form.username }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
{{ form.password.label_tag }}
|
||||
<div class="input">
|
||||
<td>{{ form.password }}</td>
|
||||
{{ form.password }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user