From d0b58fdff754090f0627efc50c44ddf5d661129a Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 15 Aug 2014 19:58:20 +0200 Subject: [PATCH 1/2] Fix side selection (always defaults to 'right') --- lib/latest_issues/view_hook_listener.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/latest_issues/view_hook_listener.rb b/lib/latest_issues/view_hook_listener.rb index 13b36c4..2a422ec 100644 --- a/lib/latest_issues/view_hook_listener.rb +++ b/lib/latest_issues/view_hook_listener.rb @@ -17,9 +17,9 @@ def view_welcome_index_right(context={}) end def load_setup() - - #setup = LatestIssuesSetup.find_by_id(1) - setup = nil + + setup = LatestIssuesSetup.find_by_id(1) + if setup == nil count = LatestIssuesSetup::DEFAULT_COUNT side = LatestIssuesSetup::DEFAULT_SIDE From 8e7f2b6fd3af57c08faa5c333a170290bc7ea33d Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 15 Aug 2014 20:11:17 +0200 Subject: [PATCH 2/2] Update README contents and formatting --- README.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index eb1367e..2c216f9 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,39 @@ -Redmine plugin: Latest Issues -============================= +# Redmine plugin: Latest Issues Latest Issues is a plugin that displays most recently added issues and information on who they were assigned to. You can configure how many latest issues you want to see, and which side of the home page you want to display them on. -Installation -============ -1. Clone latest version of plugin from git, install it to plugins. git clone ssh://git@github.com/kgogolek/latest-issues-redmine-plugin.git latest_issues +## Installation +1. Clone latest version of plugin from git, install it to plugins. + + git clone https://github.com/kgogolek/latest-issues-redmine-plugin.git latest_issues 2. Make sure your plugin folder name is *latest_issues* -3. Run the plugin migrations +rake db:migrate_plugins+ +3. Run the plugin migrations + + rake db:migrate_plugins RAILS_ENV=production + +or on Redmine 2.5.x + + rake redmine:plugins:migrate RAILS_ENV=production + +4. Restart your Redmine web servers (e.g. mongrel, thin, mod\_rails) + +Apache2 Example: -4. Restart your Redmine web servers (e.g. mongrel, thin, mod_rails) + /etc/init.d/apache2 restart Plugin should work now. -Configuration -============ +## Configuration You can configure the number of latest issues displayed, and the side they will display at, if you go to Administration => Latest Issues. -Contact -======= +## Contact You can log bugs and feature requests for this plugin here: -http://redmine.gogolek.co.uk/projects/redmine-latest-issues +https://github.com/kgogolek/latest-issues-redmine-plugin If you would like to send me an email, here you go: kasia@gogolek.co.uk