taktos / redmine_holidays_plugin Goto Github PK
View Code? Open in Web Editor NEWThis is a redmine plugin that displays holiday in the calendar.
This is a redmine plugin that displays holiday in the calendar.
When I go to /settings/plugin/redmine_holidays_plugin I receive 404
The page you were trying to access doesn't exist or has been removed.
Hello,
can i add holidays to your plugin? how to do to add new days ? what table from database?
Plugins installed ok
My error, unzip plugin removing "_plugin" from directory
Please, improve install description
After installing the plugin I restarted Redmine and got this:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
I uninstalled the plugin and had access to Redmine again.
I am using the latest release of Redmine (2.4.2)
Hope you can help me.
404 error-The page you were trying to access doesn't exist or has been removed.
Hello, I've installed the fork of Eivy in my server, but it crashed the settings page. Probably due to the Gemfile (which does not specify the vesion of the gem). It automatically downloads the latest and greatest gem. I've downgraded this gem requirement to v3.30 and it works fine for me.
You can check the patch I did here:
I add this issue here because Envy's fork has not the issue module active.
Thanks for this fantastic plugin.
Just installed hits plugin as it looked new than another pluging named "holdays" but when I try to use the admin I get this:
Completed 500 Internal Server Error in 301ms (ActiveRecord: 204.9ms)
actionView::Template::Error (Undefined method `regions' for Holidays:module):
2: <table>
3: <tr>
4: <td><%= (:region) %></td>
5: <td><%= select_tag("settings[region'], options_for_select(Holidays.regions, @settings['region'])) %></td>
6: </tr>
7: </table>
8: </p>
plugins/redmine_holidays_plugin/app/views/settings/_holidays_settings.html.erb:5:in `_plugins_redmine_holidays_plugin_app_views_settings__holidays_settings.html.erb__146967758765293199_57049560'
Is there a simple way to fix this?
After installing, I accessed to redmine and got this:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
version:
↓↓↓↓↓
Environment:
Redmine version 2.5.0.stable
Ruby version 2.0.0-p647 (2015-08-18) [x86_64-linux]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
recurring_tasks 2.0.0-pre
redmine_holidays_plugin 0.0.1
↑↑↑↑↑
holidays:
holidays (3.1.2, 2.2.0)
Please help me.
Having trouble getting this working on Redmine 5.x.
1st step needed to get the app working was to push the holiday gem back to old version as suggested elsewhere. In the plugin Gemfile:
gem 'holidays', '3.3.0'
However, when calling up the Calendar in a project I now get:
I, [2023-09-18T10:02:08.453354 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Started GET "/projects/dhtwg/issues/calendar" for 85.6.244.95 at 2023-09-18 10:02:08 +0000
I, [2023-09-18T10:02:08.454239 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Processing by CalendarsController#show as HTML
I, [2023-09-18T10:02:08.454289 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Parameters: {"project_id"=>"dhtwg"}
I, [2023-09-18T10:02:08.523557 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Current user: admin (id=1)
I, [2023-09-18T10:02:08.673637 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Rendered calendars/show.html.erb within layouts/base (Duration: 42.5ms | Allocations: 32927)
I, [2023-09-18T10:02:08.673747 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Rendered layout layouts/base.html.erb (Duration: 42.7ms | Allocations: 32988)
I, [2023-09-18T10:02:08.673953 #372946] INFO -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc] Completed 500 Internal Server Error in 220ms (ActiveRecord: 68.0ms | Allocations: 136277)
F, [2023-09-18T10:02:08.675176 #372946] FATAL -- : [00536208-f73d-4b3c-bd12-760aa6bbe7dc]
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] ActionView::Template::Error (undefined method `holiday?' for Sun, 27 Aug 2023:Date):
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 8: <% day = calendar.startdt
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 9: while day <= calendar.enddt %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 10: <%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == calendar.first_wday %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 11: <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %><%= ' holiday' if day.holiday?(Setting.plugin_redmine_holidays_plugin['region']) || day.wday == 0 || day.wday == 6 %>">
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 12: <p class="day-num">
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 13: <% if day.holiday?(Setting.plugin_redmine_holidays_plugin['region']) %><span style="float:left; padding: 1px;"><%= day.holidays(Setting.plugin_redmine_holidays_plugin['region']).first[:name] %></span><% end %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] 14: <%= day.day %>
[00536208-f73d-4b3c-bd12-760aa6bbe7dc]
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] plugins/redmine_holidays_plugin/app/views/common/_calendar.html.erb:11
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] app/views/calendars/show.html.erb:51
[00536208-f73d-4b3c-bd12-760aa6bbe7dc] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Anyone have any suggestions for this?
does not correspond to the 3.x version of holidays
First aid:
gem 'holidays' -> gem 'holidays', '2.2.0'
Need to populate abbreviations in regional setting + add Russian
After executing below command I got below error
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
NameError: uninitialized constant Holidays
DL is deprecated, please use Fiddlerake aborted!
Could somebody help ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.