Skip to content

Commit

Permalink
Merge pull request #2 from getgrav/develop
Browse files Browse the repository at this point in the history
Release 0.4.1
  • Loading branch information
Vivalldi committed Aug 25, 2015
2 parents d64ef15 + 803a623 commit beaef69
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 38 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v0.4.1
## 08/24/2015

1. [](#bugfix)
* Fix for broken **Add Page** - Doh!
* Fix for empty site link when at root

# v0.4.0
## 08/24/2015

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Admin Panel
version: 0.4.0
version: 0.4.1
description: Adds an advanced administration panel to manage your site
icon: empire
author:
Expand Down
10 changes: 6 additions & 4 deletions languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ en:
DELIMITER_HELP: "The summary delimiter (default '===')"
METADATA: Metadata
METADATA_HELP: "Default metadata values that will be displayed on every page unless overridden by the page"
METADATA_KEY: "Key (e.g. 'Keywords')"
METADATA_VALUE: "Value (e.g. 'Blog, Grav')"
NAME: Key
CONTENT: Value
REDIRECTS_AND_ROUTES: Redirects & Routes
CUSTOM_REDIRECTS: Custom Redirects
CUSTOM_REDIRECTS_HELP: "routes to redirect to other pages. Standard Regex replacement is valid"
Expand Down Expand Up @@ -423,6 +419,8 @@ en:
MODAL_DELETE_PAGE_CONFIRMATION_REQUIRED_DESC: Are you sure you want to delete this page and all it's children? If the page is translated in other languages, those translations will be kept and must be deleted separately. Otherwise the page folder will be deleted along with its subpages. This action cannot be undone.
AND: and
UPDATE_AVAILABLE: Update available
METADATA_KEY: "Key (e.g. 'Keywords')"
METADATA_VALUE: "Value (e.g. 'Blog, Grav')"

es:
PLUGIN_ADMIN:
Expand Down Expand Up @@ -861,6 +859,8 @@ it:
MODAL_DELETE_PAGE_CONFIRMATION_REQUIRED_DESC: Sicuro di voler cancellare questa pagina? Se la pagina è tradotta in altre lingue, tali lingue verranno preservate e dovranno essere cancellate a parte. Altrimenti verrà cancellata la pagina e tutte le sottopagine. Questa azione non può essere annullata.
AND: e
UPDATE_AVAILABLE: Aggiornamento disponibile
METADATA_KEY: "Key (e.g. 'Keywords')"
METADATA_VALUE: "Value (e.g. 'Blog, Grav')"

de:
PLUGIN_ADMIN:
Expand Down Expand Up @@ -1280,3 +1280,5 @@ de:
MODAL_DELETE_PAGE_CONFIRMATION_REQUIRED_DESC: Are you sure you want to delete this page and all it's children? If the page is translated in other languages, those translations will be kept and must be deleted separately. This action cannot be undone.
AND: und
UPDATE_AVAILABLE: Aktualisierung verfügbar
METADATA_KEY: "Key (e.g. 'Keywords')"
METADATA_VALUE: "Value (e.g. 'Blog, Grav')"
1 change: 1 addition & 0 deletions themes/grav/templates/partials/base.html.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% set base_url_relative_frontend = base_url_relative_frontend is not empty ?: '/' %}
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
3 changes: 2 additions & 1 deletion themes/grav/templates/partials/blueprints-new.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
{% endif %}
{% endfor %}

<input type="hidden" name="task" value="continue" />
<div class="button-bar">
<button class="button primary" name="task" value="continue">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
<button class="button primary">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
</div>
</form>
32 changes: 0 additions & 32 deletions themes/grav/templates/partials/blueprints-raw.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,4 @@
</div>
{% endif %}
{% endfor %}



{#
<div class="button-bar">
<button class="button" name="task" value="save">Save</button>
{% if context.exists %}
<button class="button" name="task" value="copy">Copy</button>
{% endif %}
{% if context.exists or context.isDir %}
<button class="button confirm-delete" name="task" value="delete" formnovalidate="formnovalidate">Delete</button>
{% endif %}
</div>
<script type="text/javascript">
$('.confirm-delete').click(function(){
var that = this;
vex.dialog.confirm({
message: 'Are you sure you want to delete the page and all content under it?',
callback: function(success) {
if (success) {
var form = $(that).closest('form');
$('<input />').attr('type', 'hidden').attr('name', 'task').attr('value', $(that).val()).appendTo(form);
form.submit();
}
}
});
return false;
});
</script>
#}
</form>

0 comments on commit beaef69

Please sign in to comment.