{% extends "_layout.html" %}
{% load compressed %}
{% block page_title %}{{ choropleth.name }}{% endblock page_title %}

{% block head %}
    {% compressed_js 'map-vendor' %}
    {% compressed_js 'map' %}
{% endblock head %}


{% block header %}{{ choropleth.name }}{% endblock header %}


{% block control-btns %}

    {% if choropleth.owner.id == user.id %}

        <a  href="{% url 'choropleths:choropleth-edit' choropleth.id %}">
            <button class="btn btn-default btn-sm"><span class="glyphicon glyphicon-edit"></span>&nbsp;Edit</button>
        </a>

    {% endif %}

    {% if choropleth.dataset.published or choropleth.owner == user %}

        <a  href="{% url 'datasets:dataset-detail' choropleth.dataset_id %}">
            <button class="btn btn-default btn-sm"><span class="glyphicon glyphicon-book"></span>&nbsp;Dataset</button>
        </a>

    {% endif %}

{% endblock control-btns %}


{% block content %}

{% with noHorizontalRule=True %}
{{ block.super }}
{% endwith %}

    <div class="col-sm-12" id="choropleth-wrapper">
        <form ng-controller="ViewController" ng-init="init({{ choropleth.id }})">
            {% include  'partials/choropleth.html' %}
            <markdown description="choropleth.description"></markdown>
        </form>
    </div>

{% endblock content %}


{% extends "_layout.html" %}
{% load compressed %}
{% block page_title %}{{ choropleth.name }}{% endblock page_title %}

{% block head %}
    {% compressed_js 'map-vendor' %}
    {% compressed_js 'map' %}
{% endblock head %}


{% block header %}{{ choropleth.name }}{% endblock header %}


{% block control-btns %}

    {% if choropleth.dataset.published or choropleth.owner == user %}
        <a  href="{% url 'datasets:dataset-detail' choropleth.dataset_id %}">
            <button class="btn btn-default btn-sm"><span class="glyphicon glyphicon-book"></span>&nbsp;Dataset</button>
        </a>
    {% endif %}

    {% if choropleth.owner.id == user.id %}
        <a  href="{% url 'choropleths:choropleth-edit' choropleth.id %}">
            <button class="btn btn-default btn-sm"><span class="glyphicon glyphicon-edit"></span>&nbsp;Edit</button>
        </a>
    {% endif %}

{% endblock control-btns %}


{% block content %}

{% with noHorizontalRule=True %}
{{ block.super }}
{% endwith %}

    <div class="col-sm-12" id="choropleth-wrapper">
        <form ng-controller="ViewController" ng-init="init({{ choropleth.id }})">
            {% include  'partials/choropleth.html' %}
            <markdown description="choropleth.description"></markdown>
        </form>
    </div>

{% endblock content %}


Move edit button to conform to the styling of other choropleth pages.
Move edit button to conform to the styling of other choropleth pages.

git-svn-id: d73fdb991549f9d1a0affa567d55bb0fdbd453f3@8046 f04a3889-0f81-4131-97fb-bc517d1f583d
