Issue #1044 : Design fixes

This commit is contained in:
Zacharie
2020-06-10 16:52:12 +02:00
committed by plegall
parent 97ef03eead
commit 05be2625ab
4 changed files with 27 additions and 15 deletions

View File

@@ -282,13 +282,17 @@ while ($user_row = pwg_db_fetch_assoc($result))
$row['added_by'] = $user_row['username'];
}
$extTab = explode('.',$row['file']);
$intro_vars = array(
'file' => l10n('Original file : %s', $row['file']),
'add_date' => l10n('Posted %s on %s', time_since($row['date_available'], 'year'), format_date($row['date_available'], array('day', 'month', 'year'))),
'file' => l10n('%s', $row['file']),
'date' => l10n('Posted the %s', format_date($row['date_available'], array('day', 'month', 'year'))),
'age' => l10n(ucfirst(time_since($row['date_available'], 'year'))),
'added_by' => l10n('Added by %s', $row['added_by']),
'size' => $row['width'].'×'.$row['height'].' pixels, '.sprintf('%.2f', $row['filesize']/1024).'MB',
'stats' => l10n('Visited %d times', $row['hit']),
'id' => l10n('Numeric identifier : %d', $row['id']),
'id' => l10n($row['id']),
'ext' => l10n('%s file type',strtoupper(end($extTab)))
);
if ($conf['rate'] and !empty($row['rating_score']))

View File

@@ -84,14 +84,14 @@ $('#action-delete-picture').on('click', function() {
}());
{/footer_script}
<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
<h2>{$TITLE} &#8250; {'Edit photo #%s'|@translate:$INTRO.id} {$TABSHEET_TITLE}</h2>
<form action="{$F_ACTION}" method="post" id="pictureModify">
<div id='picture-preview'>
<div class='picture-preview-actions'>
<a class="icon-eye" href="{$U_JUMPTO}" title="{'jump to photo'|@translate}"></a>
<a class="icon-download" href="{$U_DOWNLOAD}" title="{'Download'|translate}"></a>
<a class="icon-arrows-cw" href="{$U_SYNC}" title="{'Synchronize metadata'|@translate}"</a>
<a class="icon-arrows-cw" href="{$U_SYNC}" title="{'Synchronize metadata'|@translate}"></a>
<a class="icon-trash" title="{'delete photo'|@translate}" id='action-delete-picture'></a>
</div>
<a href="{$FILE_SRC}" class="preview-box icon-zoom-in" title="{$TITLE|htmlspecialchars}" style="{if $FORMAT}width{else}height{/if}:35vw">
@@ -108,7 +108,7 @@ $('#action-delete-picture').on('click', function() {
<div class='picture-infos-title'>{$INTRO.file}</div>
<div>{$INTRO.size}</div>
<div>{$INTRO.formats}</div>
<div>{$INTRO.id}</div>
<div>{$INTRO.ext}</div>
</div>
</div>
@@ -117,7 +117,8 @@ $('#action-delete-picture').on('click', function() {
<span class='icon-calendar'></span>
</div>
<div class='picture-infos-container'>
<div class='picture-infos-title'>{$INTRO.add_date}</div>
<div class='picture-infos-title'>{$INTRO.date}</div>
<div>{$INTRO.age}</div>
<div>{$INTRO.added_by}</div>
<div>{$INTRO.stats}</div>
</div>
@@ -153,7 +154,7 @@ $('#action-delete-picture').on('click', function() {
<br>
<select data-selectize="categories" data-value="{$associated_albums|@json_encode|escape:html}"
placeholder="{'Type in a search term'|translate}"
data-default="{$STORAGE_ALBUM}" name="associate[]" multiple style="width:100%;"></select>
data-default="{$STORAGE_ALBUM}" name="associate[]" multiple style="width:103%;"></select>
</p>
<p>
@@ -161,7 +162,7 @@ $('#action-delete-picture').on('click', function() {
<br>
<select data-selectize="categories" data-value="{$represented_albums|@json_encode|escape:html}"
placeholder="{'Type in a search term'|translate}"
name="represent[]" multiple style="width:100%;"></select>
name="represent[]" multiple style="width:103%;"></select>
</p>
<p>
@@ -169,7 +170,7 @@ $('#action-delete-picture').on('click', function() {
<br>
<select data-selectize="tags" data-value="{$tag_selection|@json_encode|escape:html}"
placeholder="{'Type in a search term'|translate}"
data-create="true" name="tags[]" multiple style="width:100%;"></select>
data-create="true" name="tags[]" multiple style="width:103%;"></select>
</p>
<p>

View File

@@ -1764,6 +1764,7 @@ a#showPermissions:hover {text-decoration: none;}
display: flex;
margin: 0;
justify-content: space-evenly;
margin-top: 30px
}
#picture-preview {
@@ -1816,6 +1817,10 @@ a#showPermissions:hover {text-decoration: none;}
transition: ease 0.2s;
}
#picture-content input[type=text], #picture-content textarea, #picture-content .selectize-control {
margin-top: 5px;
}
#picture-content .date-input {
position: relative;
}
@@ -1838,8 +1843,8 @@ a#showPermissions:hover {text-decoration: none;}
}
#picture-infos {
display: flex;
justify-content: space-around;
display: grid;
grid-template-columns: 50% 50%;
}
.picture-infos-category {
@@ -1847,7 +1852,8 @@ a#showPermissions:hover {text-decoration: none;}
border: #EEE solid 2px;
padding: 20px;
border-radius: 5px;
margin: 5px;
margin: 5px 10px;
align-items: center;
}
.picture-infos-icon {
@@ -1863,6 +1869,7 @@ a#showPermissions:hover {text-decoration: none;}
.picture-infos-container {
margin: 0;
display: inline-table;
}
.picture-infos-container div {

View File

@@ -879,7 +879,7 @@ $lang['Y Position'] = 'Position Y';
$lang['Multiple Size'] = 'Tailles multiples';
$lang['Watermark'] = 'Filigrane';
$lang['Original file : %s'] = 'Fichier original : %s';
$lang['Posted %s on %s'] = 'Postée %s le %s';
$lang['Posted the %s'] = 'Postée le %s';
$lang['Added by %s'] = 'Ajouté par %s';
$lang['Visited %d times'] = 'Visitée %d fois';
$lang['Numeric identifier : %d'] = 'Identifiant numérique : %d';
@@ -901,7 +901,7 @@ $lang['%d minutes'] = '%d minutes';
$lang['%d second'] = '%d seconde';
$lang['%d seconds'] = '%d secondes';
$lang['Sharpen'] = 'Renforcer la netteté';
$lang['Edit photo'] = 'Éditer la photo';
$lang['Edit photo #%s'] = 'Éditer la photo #%s';
$lang['create a new site'] = 'créer un nouveau site';
$lang['No order field selected'] = 'Aucun critère de tri sélectionné';
$lang['Name of the duplicate'] = "Nom du duplicata";