Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
adds contextual key for where a new directory is being created
Browse files Browse the repository at this point in the history
  • Loading branch information
cdowdy committed Sep 11, 2017
1 parent c39d83c commit 0794f3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/forms/_tnypng_create_newDir.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<div>
<h2>Create a New Directory Here:</h2>
{% if directory == 'index' %}
{% set currentDir = 'files' %}
{% else %}
{% set currentDir = directory %}
{% endif %}

<p>
This will create a new 'sub' directory in <b>{{ currentDir }}</b>
</p>
<form class="form-inline"
name="tinypng_new_dir"
method="POST"
Expand Down

0 comments on commit 0794f3c

Please sign in to comment.