Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adiciona badge [Dados libertos pelo Brasil.io] na pág. de dataset #240

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dist/*
docker/neo4j
docker/redis
docker/postgres/data
docker/postgresql/data
public/
reg_settings.py
.vscode/
Expand Down
8 changes: 8 additions & 0 deletions core/templates/dataset-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% load l10n %}
{% load markdown %}
{% load utils %}
{% load static %}
{% block title %}{{ dataset.name }} - Datasets - Brasil.IO{% endblock %}
{% block content %}{% localize off %}
<div class="section">
Expand Down Expand Up @@ -34,6 +35,13 @@ <h4>{{ dataset.name }}</h4>
</li>
{% endif %}
</ul>

<div class="col s12 m-t-20 m-b-20">
<p>Se você usar nossos dados, não esqueça de <a href="">citar a fonte</a>. O Brasil.io acredita na ética e no respeito da licença de uso. Você pode complementar os créditos utilizando a nossa badge:</p>
<div class="container badge p-b-20">
<img src="{% static 'img/badges/badge-brasilio.png' %}" class="img-badge" alt="Badge dados libertos via Brasil.io">
</div>
</div>
</div>

<div class="row">
Expand Down
8 changes: 8 additions & 0 deletions static/css/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ h1, h2, h3, h4, h5, h6 {
margin: 0.5rem 0 0.5rem 0;
}

.container.badge {
max-width: 240px;
}

.img-badge {
width: 100%;
}

.container {
margin: 0 auto;
width: 90%;
Expand Down
Binary file added static/img/badges/badge-brasilio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.