diff --git a/assets/images/agenda.png b/app/assets/images/agenda.png similarity index 100% rename from assets/images/agenda.png rename to app/assets/images/agenda.png diff --git a/assets/images/meeting.png b/app/assets/images/meeting.png similarity index 100% rename from assets/images/meeting.png rename to app/assets/images/meeting.png diff --git a/assets/images/minutes.png b/app/assets/images/minutes.png similarity index 100% rename from assets/images/minutes.png rename to app/assets/images/minutes.png diff --git a/assets/stylesheets/redmine_meeting.css b/app/assets/stylesheets/openproject_meeting.css similarity index 55% rename from assets/stylesheets/redmine_meeting.css rename to app/assets/stylesheets/openproject_meeting.css index 85c9cfa7ac..560903d329 100644 --- a/assets/stylesheets/redmine_meeting.css +++ b/app/assets/stylesheets/openproject_meeting.css @@ -5,25 +5,25 @@ dl.meetings p, div#activity dl.meetings dd, div#activity dl.meetings dt {padding dl.meetings {margin-bottom: 2em;} div.tabular > div { margin: 0; - padding: 5px 0 8px 0; - padding-left: 180px; /*width of left column containing the label elements*/ - height: 1%; - clear:left; - } + padding: 5px 0 8px 0; + padding-left: 180px; /*width of left column containing the label elements*/ + height: 1%; + clear:left; +} -#meeting_agenda_preview fieldset {margin-top: 1em; background: url(../../../images/draft.png);} -#meeting_minutes_preview fieldset {margin-top: 1em; background: url(../../../images/draft.png);} +#meeting_agenda_preview fieldset {margin-top: 1em; background: url(draft.png);} +#meeting_minutes_preview fieldset {margin-top: 1em; background: url(draft.png);} dt.meeting { - background-image: url(../images/meeting.png); + background-image: url(meeting.png); } dt.meeting-agenda { - background-image: url(../images/agenda.png); + background-image: url(agenda.png); } dt.meeting-minutes { - background-image: url(../images/minutes.png); + background-image: url(minutes.png); } div#activity dl.meetings dt span { padding-left: 15px; diff --git a/lib/openproject_meeting/engine.rb b/lib/openproject_meeting/engine.rb index d87c00390b..b082a8ee01 100644 --- a/lib/openproject_meeting/engine.rb +++ b/lib/openproject_meeting/engine.rb @@ -4,6 +4,10 @@ module MeetingsPlugin class Engine < ::Rails::Engine isolate_namespace MeetingsPlugin + initializer 'landing_page.precompile_assets' do + Rails.application.config.assets.precompile += ["openproject_meeting.css"] + end + config.to_prepare do require 'redmine/plugin'