diff --git a/README.md b/README.md index c056436e..9f776993 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,29 @@ -# Kimai - Time Tracking Application +# Kimai v2 - Time Tracking -Kimai v2 - the reloaded open source Time-Tracking application, based on Symfony and powered by PHP. +Kimai v2 - the reloaded open source Time-Tracking application. [](https://travis-ci.org/kevinpapst/kimai2) -Requirements ------------- +## Introduction + +This is the reloaded version of the open source time-tracking application [Kimai](http://www.kimai.org). + +It is based on the following components: + - Symfony Framework 2.x + - AdminLTE Control Panel Template (through the AdminThemeBundle) + +## Requirements * PHP 5.5.9 or higher; * One PHP extension of PDO-SQLite and/or PDO-MySQL enabled; * and the [usual Symfony application requirements](http://symfony.com/doc/current/reference/requirements.html). + * bower (through npm) If unsure about meeting these requirements, download the demo application and browse the `http://localhost:8000/config.php` script to get more detailed information. -Installation ------------- +## Installation [](https://heroku.com/deploy) @@ -29,6 +36,13 @@ $ cd kimai2/ $ composer install ``` +Lets prepare the environment +```bash +$ php bin/console assets:install --symlink +$ php bin/console avanzu:admin:fetch-vendor +``` + + This was the basic task of the installation. If you have not yet setup a database, you can create it and import example data by executing these commands: ```bash @@ -44,8 +58,7 @@ If you have imported the example data, you can login with two accounts: - Username: *tony_teamlead* / Password: *kitten* / Role: Teamlead - Username: *anna_admin* / Password: *kitten* / Role: Administrator -Usage ------ +## Usage There is no need to configure a virtual host in your web server to access the application. Just use the built-in web server: @@ -65,3 +78,10 @@ terminal. > Kimai, configure it to point at the `web/` directory of the project. > For more details, see: > http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html + +## Troubleshooting + +Cannot see any assets (like images) and/or missing styles? Try executing: +```bash +$ php bin/console assets:install --symlink +``` \ No newline at end of file diff --git a/app/AppKernel.php b/app/AppKernel.php index 76aaef52..2c14036e 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -32,9 +32,9 @@ class AppKernel extends Kernel new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(), - new Knp\Bundle\MenuBundle\KnpMenuBundle(), new AppBundle\AppBundle(), new TimesheetBundle\TimesheetBundle(), + new Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle(), ]; // Bundles only used for development or unit and functional tests diff --git a/app/Resources/TwigBundle/views/Exception/error.html.twig b/app/Resources/TwigBundle/views/Exception/error.html.twig index cc0a883c..05c97565 100644 --- a/app/Resources/TwigBundle/views/Exception/error.html.twig +++ b/app/Resources/TwigBundle/views/Exception/error.html.twig @@ -19,7 +19,7 @@ {{ 'http_error.description'|trans({ '%status_code%': status_code }) }}
- {{ 'http_error.suggestion'|trans({ '%url%': path('blog_index') })|raw }} + {{ 'http_error.suggestion'|trans({ '%url%': path('homepage') })|raw }}
{% endblock %} diff --git a/app/Resources/TwigBundle/views/Exception/error404.html.twig b/app/Resources/TwigBundle/views/Exception/error404.html.twig index 3d9dbced..135e52a6 100644 --- a/app/Resources/TwigBundle/views/Exception/error404.html.twig +++ b/app/Resources/TwigBundle/views/Exception/error404.html.twig @@ -19,7 +19,7 @@ {{ 'http_error_404.description'|trans }}- {{ 'http_error_404.suggestion'|trans({ '%url%': path('blog_index') })|raw }} + {{ 'http_error_404.suggestion'|trans({ '%url%': path('homepage') })|raw }}
{% endblock %} diff --git a/app/Resources/TwigBundle/views/Exception/error500.html.twig b/app/Resources/TwigBundle/views/Exception/error500.html.twig index d84088d8..a3900645 100644 --- a/app/Resources/TwigBundle/views/Exception/error500.html.twig +++ b/app/Resources/TwigBundle/views/Exception/error500.html.twig @@ -19,7 +19,7 @@ {{ 'http_error_500.description'|trans }}- {{ 'http_error_500.suggestion'|trans({ '%url%': path('blog_index') })|raw }} + {{ 'http_error_500.suggestion'|trans({ '%url%': path('homepage') })|raw }}
{% endblock %} diff --git a/app/Resources/translations/messages.de.xliff b/app/Resources/translations/messages.de.xliff index 39edb9ad..3b33e011 100644 --- a/app/Resources/translations/messages.de.xliff +++ b/app/Resources/translations/messages.de.xliff @@ -2,6 +2,52 @@| {{ 'label.title'|trans }} | -{{ 'label.author'|trans }} | -{{ 'label.published_at'|trans }} | -{{ 'label.actions'|trans }} | -
|---|---|---|---|
| {{ post.title }} | -{{ post.authorEmail }} | - {# it's not mandatory to set the timezone in localizeddate(). This is done to - avoid errors when the 'intl' PHP extension is not available and the application - is forced to use the limited "intl polyfill", which only supports UTC and GMT #} -{% if post.publishedAt %}{{ post.publishedAt|localizeddate('short', 'short', null, 'UTC') }}{% endif %} | -
-
-
- {{ 'action.show'|trans }}
-
-
- {% if post.isAuthor(app.user) %}
-
- {{ 'action.edit'|trans }}
-
- {% endif %}
-
- |
-
| {{ 'post.no_posts_found'|trans }} | -|||
| {{ 'label.summary'|trans }} | -{{ post.summary|md2html }} | -
|---|---|
| {{ 'label.content'|trans }} | -{{ post.content|md2html }} | -
| {{ 'label.author'|trans }} | -{{ post.authorEmail }} |
-
| {{ 'label.published_at'|trans }} | - {# it's not mandatory to set the timezone in localizeddate(). This is done to - avoid errors when the 'intl' PHP extension is not available and the application - is forced to use the limited "intl polyfill", which only supports UTC and GMT #} -{{ post.publishedAt|localizeddate('long', 'medium', null, 'UTC') }} |
-
- {{ 'help.app_description'|trans|raw }} -
-- {{ 'help.more_information'|trans|raw }} -
-- - {{ 'action.sign_in'|trans }} - - {{ 'post.to_publish_a_comment'|trans }} -
- {% endif %} -{{ 'post.no_comments'|trans }}
-
- {{ comment.authorEmail }} {{ 'post.commented_on'|trans }} - {# it's not mandatory to set the timezone in localizeddate(). This is done to - avoid errors when the 'intl' PHP extension is not available and the application - is forced to use the limited "intl polyfill", which only supports UTC and GMT #} - {{ comment.publishedAt|localizeddate('medium', 'short', null, 'UTC') }} -
-