{% extends "resumes/base.html" %}
{% load resume_tags %}
{% load tagging_tags %}
{% load base_tags %}
{% load base_filters %}
{% load category_tags %}
{% load i18n %}

{% block title %}{{ resume.get_title }}{% endblock %}
{% block meta_description %}{{ resume.get_description }}{% endblock %}
{% block meta_keywords %}{{ resume.get_keywords }}{% endblock %}
{% block meta_canonical_url %}<link rel="canonical" href="{{ resume.get_canonical_url }}" />{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/resumes.css">
{% endblock %}

{% block body %}

<div class="t">
    {% resume_nav request.user resume %}

    <div class="resume-wrap">
			
        <h1>{{ resume.title }}</h1>
        
        {% if resume.resume_url %}
        <div id="resume-link">
        <a href="{{ resume.resume_url }}" target="_blank">{% trans "View" %} {% if resume.contact_name %}{{ resume.contact_name }}'s {% trans "resume" %} {% else %} {% trans "this resume's" %}{% endif %} {% trans "website" %} &raquo;</a>
        </div>
        {% endif %}

        {% if resume.resume_file %}
        <div id="resume-link">
        <a href="{% url resume.resume_file resume.slug %}">{% trans "Download" %} {% if resume.contact_name %}{{ resume.contact_name }}'s {% trans "resume" %} {% else %} {% trans "resume" %}{% endif %} &raquo;</a>
        </div>
        {% endif %}

        {% if resume.description %}
                <div class="section-block">
                    <div class="label">{% trans "Description" %}</div>
                    <div class="value">{{ resume.description|safe }}</div>
                </div>
        {% endif %}

        {% if resume.location %}
                <div class="section-block">
                    <div class="label">{% trans "Location" %}</div>
                    <div class="value">{{ resume.location }}</div>
                    <div class="clear"></div>
                </div>
        {% endif %}


        {% if resume.experience %}
                <div class="section-block">
                    <div class="label">{% trans "Experience" %}</div>
                    <div class="value">{{ resume.experience|safe|linebreaks }}</div>
                </div>
        {% endif %}

        {% if resume.skills %}
                <div class="section-block">
                    <div class="label">{% trans "Skills" %}</div>
                    <div class="value">{{ resume.skills|safe|linebreaks }}</div>
                </div>
        {% endif %}

        {% if resume.education %}
                <div class="section-block">
                    <div class="label">{% trans "Education" %}</div>
                    <div class="value">{{ resume.education|safe|linebreaks }}</div>
                    <div class="clear"></div>
                </div>
        {% endif %}

		<h2>Contact Information</h2>
        {% if resume.contact_name %}
                <div class="contact-wrap">
                    <div>{{ resume.contact_name }}</div>
                    <div>{{ resume.contact_phone|phonenumber }}</div>
                    <div>{{ resume.contact_phone2|phonenumber }}</div>
                    <div>{{ resume.contact_fax }}</div>
                    <div><a href="">{{ resume.contact_email|obfuscate_email }}</a></div>
                </div>
        {% endif %}

        {% include "resumes/meta.html" %}
        
        {% url resume resume.pk as the_url %}
        <p>{% fb_like_button_iframe the_url %}</p>
    </div>

    <!-- delete-resume form -->
    <form name="resume-delete" method="POST" action="{% url resume.delete resume.pk %}">{% csrf_token %}
        <input type="hidden" name="action" value="delete">
    </form>

</div>
{% endblock %}

{% block extra_body %}
    {{ block.super }}
    <script type="text/javascript" src="{{ STATIC_URL }}js/global/dropdown.js"></script>
	<script type="text/javascript">
	var iconrow = new dropdown({
		container:	'more-options-wrap',
		trigger:	'more-options-trigger',
		target:		'more-options-target'
	});
	</script>
{% endblock %}
