Skip to content

Commit

Permalink
Move action buttons to the right
Browse files Browse the repository at this point in the history
There was unused space there and I think they fit better there. This
also allows to have them on every page.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Aug 5, 2016
1 parent 7becc57 commit 5bcb5ee
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
4 changes: 3 additions & 1 deletion files/models.py
Expand Up @@ -29,7 +29,7 @@
import os.path
from data.themes import CSSMAP
from markupfield.fields import MarkupField
from pmaweb.cdn import purge_cdn
from pmaweb.cdn import purge_cdn, purge_all_cdn

# Naming of versions
VERSION_INFO = (
Expand Down Expand Up @@ -381,6 +381,8 @@ def purge_release(sender, instance, **kwargs):
# This release
instance.get_absolute_url(),
)
# Purge all pages as every page contains download link
purge_all_cdn()


@receiver(post_save, sender=Download)
Expand Down
8 changes: 8 additions & 0 deletions pmaweb/static/css/style.css
Expand Up @@ -220,3 +220,11 @@ footer li{
z-index: 3;
}

.boxes {
max-width: 15em;
}

.boxes a {
width: 100%;
margin: 5px;
}
2 changes: 0 additions & 2 deletions pmaweb/templates/404.html
Expand Up @@ -3,8 +3,6 @@

{% block content %}

{% include '_littleboxes.html' %}

<h2>Page Not Found</h2>

<p>
Expand Down
5 changes: 5 additions & 0 deletions pmaweb/templates/base.html
Expand Up @@ -77,6 +77,11 @@
</nav>

<div class="container">
<div class="pull-right boxes">
{% block littleboxes %}
{% include '_littleboxes.html' %}
{% endblock %}
</div>
<h1><a href="{% url 'home' %}" rel="home"><span id="logo">phpMyAdmin</span></a> <span class="hidden-sm hidden-xs">Bringing MySQL to the web</span></h1>
</div>
</header>
Expand Down
1 change: 0 additions & 1 deletion pmaweb/templates/index.html
Expand Up @@ -2,7 +2,6 @@
{% load staticfiles %}

{% block content %}
{% include '_littleboxes.html' %}

<div class="row">

Expand Down
2 changes: 0 additions & 2 deletions pmaweb/templates/news/post_archive.html
Expand Up @@ -3,8 +3,6 @@

{% block content %}

{% include "_littleboxes.html" %}

<p>Bored of official project news? Then check out developers blogs at
<a href="https://planet.phpmyadmin.net/">planet phpMyAdmin</a>.</p>

Expand Down
4 changes: 0 additions & 4 deletions pmaweb/templates/try.html
Expand Up @@ -3,10 +3,6 @@

{% block content %}

<a class="btn btn-success" href="https://demo.phpmyadmin.net/master/"><i class="fa fa-search"></i> Demo with cookie auth</a>
<a class="btn btn-success" href="https://demo.phpmyadmin.net/master-config/"><i class="fa fa-search"></i> Demo with config auth</a>
<a class="btn btn-success" href="https://demo.phpmyadmin.net/master-http/"><i class="fa fa-search"></i> Demo with HTTP auth</a>

<h2>Demo Server</h2>

<p>
Expand Down

0 comments on commit 5bcb5ee

Please sign in to comment.