Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Sep 9, 2016
2 parents 1cd2864 + 2750fa3 commit 2248010
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 32 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# v1.2.0
## 09/09/2016

1. [](#improved)
* Added french
* Fix Comments submit-button value [#4](https://github.com/getgrav/grav-theme-gateway/pull/4)
* Soften truncate so words or links wont be cut off [#5](https://github.com/getgrav/grav-theme-gateway/pull/5)
* Remove unneeded form overrides and just override the form twig blocks that changed

# v1.1.0
## 07/14/2016

1. [](#bugfix)
* Fix setting the page language in the html tag

# v1.0.0
## 02/10/2016

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: Gateway
version: 1.1.0
version: 1.2.0
description: "Gateway incorporates elegant style with user friendly options making it perfectly suited for a variety of Grav users."
icon: empire
author:
Expand Down
5 changes: 4 additions & 1 deletion languages.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
en:
TRANSLATION_TEST: Gateway!
TRANSLATION_TEST: Gateway!

fr:
TRANSLATION_TEST: Gateway!
3 changes: 0 additions & 3 deletions templates/forms/data.html.twig

This file was deleted.

3 changes: 0 additions & 3 deletions templates/forms/data.txt.twig

This file was deleted.

29 changes: 8 additions & 21 deletions templates/forms/form.html.twig
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
<div class="alert">{{ form.message }}</div>

<form name="{{ form.name }}"
action="{{ uri.rootUrl ~ (form.action|default(page.route)) }}"
method="{{ form.method|upper|default('POST') }}" class="contact-form commentsblock">
{% for field in form.fields %}
{% set value = form.value(field.name) %}
<div>
{% include "forms/fields/#{field.type}/#{field.type}.html.twig" %}
</div>
{% endfor %}

<div class="buttons">
{% for button in form.buttons %}
<button class="pushbutton-wide" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button>
{% endfor %}
</div>

{{ nonce_field('form', 'form-nonce') }}

</form>
{% extends 'forms/default/form.html.twig' %}
{% block form_classes %}
class="{{ form.classes }} contact-form commentsblock"
{% endblock %}

{% block button_classes %}
class="{{ button.classes|default('button') }} pushbutton-wide"
{% endblock %}
2 changes: 1 addition & 1 deletion templates/partials/blog_item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{% set show_prev_next = true %}
{% endif %}
{% elseif truncate and readmore is sameas(false) %}
{{ page.content|truncate(200) }}
{{ page.content|truncate(200, true) }}
{% elseif truncate and page.summary != page.content %}
<p>
{{ page.summary|striptags }}
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/comments.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<div class="buttons">
{% for button in grav.config.plugins.comments.form.buttons %}
<button class="btn" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button>
<button class="btn" type="{{ button.type|default('submit') }}">{{ button.value|t|default('Submit') }}</button>
{% endfor %}
</div>

Expand Down

0 comments on commit 2248010

Please sign in to comment.