Skip to content

Commit

Permalink
Version 6.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Jan 1, 2022
1 parent 8cb22b7 commit 31e69f9
Show file tree
Hide file tree
Showing 36 changed files with 64 additions and 61 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ For more information, go to https://www.luigifab.fr/apijs and https://www.luigif

This repository is a releases mirror. To install the plugin, please read the documentation.

- Current version: 6.8.1 (10/10/2021)
- Current version: 6.8.2 (01/01/2022)
- Compatibility: Redmine 1.4 / 2.x / 3.x / 4.x, Python 3.3 - 3.10
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk)
Expand Down
4 changes: 2 additions & 2 deletions debian/changelog
@@ -1,5 +1,5 @@
redmine-plugin-apijs (6.8.1-1) unstable; urgency=low
redmine-plugin-apijs (6.8.2-1) unstable; urgency=low

* Initial debian package release (Closes: #959426)

-- Fabrice Creuzot <code@luigifab.fr> Sun, 10 Oct 2021 20:00:00 +0000
-- Fabrice Creuzot <code@luigifab.fr> Sat, 01 Jan 2022 20:00:00 +0000
2 changes: 1 addition & 1 deletion debian/copyright
Expand Up @@ -3,7 +3,7 @@ Source: https://github.com/luigifab/redmine-apijs
Upstream-Contact: Fabrice Creuzot <code@luigifab.fr>

Files: *
Copyright: 2008-2021 Fabrice Creuzot (luigifab) <code@luigifab.fr>
Copyright: 2008-2022 Fabrice Creuzot (luigifab) <code@luigifab.fr>
License: GPL-2+

Files: */assets/fonts/apijs/fontello.woff */assets/fonts/apijs/fontello.woff2
Expand Down
4 changes: 2 additions & 2 deletions debian/deb.sh
Expand Up @@ -3,7 +3,7 @@


cd "$(dirname "$0")"
version="6.8.1"
version="6.8.2"


rm -rf builder/
Expand Down Expand Up @@ -31,7 +31,7 @@ fi


# create packages for debian and ubuntu
for serie in unstable impish hirsute focal bionic xenial trusty; do
for serie in unstable jammy impish hirsute focal bionic xenial trusty; do

if [ $serie = "unstable" ]; then
# for ubuntu
Expand Down
5 changes: 4 additions & 1 deletion opensuse/redmine-apijs.spec
@@ -1,7 +1,7 @@
%define basedir /srv/www/vhosts/redmine/
%define plugin_name redmine_apijs
Name: redmine-apijs
Version: 6.8.1
Version: 6.8.2
Release: 0
Summary: Plugin for Redmine to display a gallery from attachments
Summary(fr): Extension pour Redmine pour afficher une galerie à partir des pièces jointes
Expand Down Expand Up @@ -66,6 +66,9 @@ chmod +x %{buildroot}%{basedir}/plugins/%{plugin_name}/lib/*.py


%changelog
* Sat Jan 01 2022 Fabrice Creuzot <code@luigifab.fr> - 6.8.2-1
- New upstream release

* Sun Oct 10 2021 Fabrice Creuzot <code@luigifab.fr> - 6.8.1-1
- New upstream release

Expand Down
2 changes: 1 addition & 1 deletion opensuse/rpm.sh
Expand Up @@ -3,7 +3,7 @@


cd "$(dirname "$0")"
version="6.8.1"
version="6.8.2"


rm -rf builder/ ~/rpmbuild/
Expand Down
2 changes: 1 addition & 1 deletion rubygem/gem.sh
Expand Up @@ -3,7 +3,7 @@


cd "$(dirname "$0")"
version="6.8.1"
version="6.8.2"
rm -rf builder/


Expand Down
14 changes: 7 additions & 7 deletions src/app/controllers/apijs_controller.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
# Created J/12/12/2013
# Updated S/16/01/2021
# Updated V/15/10/2021
#
# Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# https://www.luigifab.fr/redmine/apijs
#
# This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -246,30 +246,30 @@ def download
if !request.headers['Range']
send_file(@attachment.diskfile,
filename: filename_for_content_disposition(@attachment.filename),
type: @attachment.content_type, disposition: 'inline')
type: detect_content_type(@attachment), disposition: 'inline')
else
send_data(File.binread(@attachment.diskfile, file_end - file_begin + 1, file_begin),
filename: filename_for_content_disposition(@attachment.filename),
type: @attachment.content_type, disposition: 'inline', status: '206 Partial Content')
type: detect_content_type(@attachment), disposition: 'inline', status: '206 Partial Content')
end

response.close
# image
elsif @attachment.isImage?
if stale?(etag: @attachment.diskfile)
send_file(@attachment.diskfile, filename: filename_for_content_disposition(@attachment.filename),
type: @attachment.content_type, disposition: 'inline')
type: detect_content_type(@attachment), disposition: 'inline')
end
# fichier
else
send_file(@attachment.diskfile, filename: filename_for_content_disposition(@attachment.filename),
type: @attachment.content_type, disposition: 'attachment')
type: detect_content_type(@attachment), disposition: 'attachment')
end
# téléchargement d'un fichier
else
@attachment.increment_download if @attachment.container.is_a?(Version) || @attachment.container.is_a?(Project)
send_file(@attachment.diskfile, filename: filename_for_content_disposition(@attachment.filename),
type: @attachment.content_type, disposition: 'attachment')
type: detect_content_type(@attachment), disposition: 'attachment')
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/app/views/application/_browser.html.erb
Expand Up @@ -2,7 +2,7 @@
# Created S/17/08/2019
# Updated L/25/05/2020
#
# Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# https://www.luigifab.fr/redmine/apijs
#
# This program is free software, you can redistribute it or modify
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/attachments/_links.html.erb
Expand Up @@ -2,7 +2,7 @@
# Created L/21/05/2012
# Updated J/20/08/2020
#
# Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# https://www.luigifab.fr/redmine/apijs
#
# This program is free software, you can redistribute it or modify
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/settings/_apijs.html.erb
Expand Up @@ -2,7 +2,7 @@
# Created J/12/12/2013
# Updated D/17/01/2021
#
# Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
# https://www.luigifab.fr/redmine/apijs
#
# This program is free software, you can redistribute it or modify
Expand Down
5 changes: 4 additions & 1 deletion src/assets/javascripts/apijs-redmine.js
Expand Up @@ -2,7 +2,7 @@
* Created D/15/12/2013
* Updated D/05/09/2021
*
* Copyright 2008-2021 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* Copyright 2008-2022 | Fabrice Creuzot (luigifab) <code~luigifab~fr>
* https://www.luigifab.fr/redmine/apijs
*
* This program is free software, you can redistribute it or modify
Expand Down Expand Up @@ -36,6 +36,7 @@ var apijsRedmine = new (function () {
d.de[254] = "Es tut uns leid, diese Datei existiert nicht mehr, bitte [a §]aktualisieren Sie die Seite[/a].";
d.de[255] = "Eine Beschreibung bearbeiten";
d.de[256] = "Bitte geben Sie weiter unten die neue Beschreibung für diese Datei an. Um die Beschreibung zu löschen lassen Sie das Feld leer.";
d.el[252] = "Σφάλμα";
d.en[250] = "Remove file";
d.en[251] = "Are you sure you want to remove this file?[br]Be careful, you can't cancel this operation.";
d.en[252] = "Error";
Expand Down Expand Up @@ -66,6 +67,7 @@ var apijsRedmine = new (function () {
d.fr[258] = "Saisissez ci-dessous le nouveau nom pour ce fichier.";
d.fr[259] = "Vider le cache";
d.fr[260] = "Êtes-vous certain(e) de vouloir vider le cache ?[br]Attention, cette opération n'est pas annulable.";
d.hu[252] = "Hiba";
d.it[250] = "Cancella i file";
d.it[251] = "Sei sicura di voler eliminare il file?[br]Attenzione, questa operazione non può essere annullata.";
d.it[252] = "Errore";
Expand All @@ -86,6 +88,7 @@ var apijsRedmine = new (function () {
d.pt[254] = "Lamento, o ficheiro já não existe, por favor [a §]atualize a página[/a].";
d.pt[255] = "Modificar uma descrição";
d.pt[256] = "Digite abaixo a nova descrição para este ficheiro. Para suprimir a descrição, deixe o campo vazio.";
d.ro[252] = "Eroare";
d.ru[250] = "Удалить файл";
d.ru[251] = "Вы уверены, что хотите удалить этот файл?[br]Осторожно, вы не сможете отменить эту операцию.";
d.ru[252] = "Ошибка";
Expand Down
4 changes: 2 additions & 2 deletions src/assets/javascripts/apijs-redmine.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/javascripts/apijs-redmine.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/assets/javascripts/apijs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/javascripts/apijs.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/assets/stylesheets/apijs-print.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/assets/stylesheets/apijs-print.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/assets/stylesheets/apijs-redmine-rtl.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31e69f9

Please sign in to comment.