Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions lib/latest_issues/view_hook_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down