diff --git a/CHANGELOG.md b/CHANGELOG.md index f1eb7be..5e51fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.0 + +- Reworked options to open and copy link #17 + ## 2.0.1 - Added missing translations diff --git a/Migrations/shared-project-timesheets.yaml b/Migrations/shared-project-timesheets.yaml index fce7acb..6d56bcd 100644 --- a/Migrations/shared-project-timesheets.yaml +++ b/Migrations/shared-project-timesheets.yaml @@ -6,5 +6,7 @@ # bin/console kimai:bundle:shared-project-timesheets:install # -------------------------------------------------------------------------------------------------- +table_storage: + table_name: bundle_migration_shared_project_timesheets migrations_paths: KimaiPlugin\SharedProjectTimesheetsBundle\Migrations: var/plugins/SharedProjectTimesheetsBundle/Migrations diff --git a/Resources/translations/messages.de.yaml b/Resources/translations/messages.de.yaml index 0a5f45d..91ebfcc 100644 --- a/Resources/translations/messages.de.yaml +++ b/Resources/translations/messages.de.yaml @@ -4,6 +4,9 @@ shared_project_timesheets: manage: title: Geteilte Projektzeiten + open: Öffnen + copy: Kopieren + copied: Kopiert subtitle: Verwalten Sie Ihre geteilten Projektzeiten create_link_label: Fügen Sie einen Eintrag hinzu, um Projektzeiten zu teilen create: diff --git a/Resources/translations/messages.en.yaml b/Resources/translations/messages.en.yaml index 7edbc5a..8dea586 100644 --- a/Resources/translations/messages.en.yaml +++ b/Resources/translations/messages.en.yaml @@ -4,6 +4,9 @@ shared_project_timesheets: manage: title: Shared project timesheets + open: Open + copy: Copy + copied: Copied subtitle: Manage your shared project timesheets create_link_label: Create an entry to share your project timesheets create: diff --git a/Resources/views/manage/index.html.twig b/Resources/views/manage/index.html.twig index 4a7e4a9..5f05464 100644 --- a/Resources/views/manage/index.html.twig +++ b/Resources/views/manage/index.html.twig @@ -33,13 +33,22 @@ {{ sharedProject.project.name }} {% if sharedProject.shareKey %} - - - - +
+ + {{ 'shared_project_timesheets.manage.open' | trans }} + + + + {{ 'shared_project_timesheets.manage.copy' | trans }} + +
{% else %} - {% endif %} @@ -99,4 +108,39 @@ padding-bottom: 1rem; } -{% endblock %} \ No newline at end of file +{% endblock %} + +{% block javascripts %} +{{ parent() }} + + + +{% endblock %} diff --git a/composer.json b/composer.json index b7c4a64..ba5c000 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Share project timesheets with anyone", "homepage": "https://github.com/dexterity42/SharedProjectTimesheetsBundle", "type": "kimai-plugin", - "version": "2.0.1", + "version": "2.1.0", "autoload": { "psr-4": { "KimaiPlugin\\SharedProjectTimesheetsBundle\\": "" @@ -20,7 +20,7 @@ "extra": { "kimai": { "require": "1.15", - "version": "2.0.1", + "version": "2.1.0", "name": "ShareProjectTimesheetsBundle" } },