mirror of
https://github.com/rickbarrette/stopwatch.git
synced 2026-11-17 19:50:36 -05:00
Readable Start/Stop colours, exact selectors, fork notes
- Colour-coded Start/Stop links use #2e7d32 / #c62828, which meet the 4.5:1 text contrast ratio on white and on the mobile backgrounds (limegreen was ~2:1, red ~4:1) - Selectors match the end of the link address (/timer/start, /timer/stop), exactly what stopwatch.js rewrites, instead of any address containing "start"/"stop" - highlighted_links setting uses a string key like default_activity, has a default, and the form sends 0 when unticked - Context-menu hook uses the calling view (hook_caller) instead of building a new view context - README: "Changes in this fork" section (GPLv3 modification notice) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
6 files changed
+37
-18
No files matched your search
@@ -18,6 +18,17 @@ Minimal plugin that aims to make tracking your time with Redmine much easier.
|
||||
|
||||

|
||||
|
||||
## Changes in this fork
|
||||
|
||||
This is a fork of [jkraemer/stopwatch](https://github.com/jkraemer/stopwatch), modified by
|
||||
Rick Barrette (2026):
|
||||
|
||||
- **Redmine 7:** requires Redmine 7.0+. The issue context-menu Start/Stop entry now uses Redmine 7's
|
||||
`view_issues_context_menu_start` hook instead of patching `ContextMenusController` (July 2026).
|
||||
- **Colour-coded Start/Stop:** an optional setting ("Color-code Start/Stop") shows the issue Start
|
||||
link in green and Stop in red, with tinted buttons on mobile (March 2026; colours adjusted for
|
||||
readable contrast in October 2026).
|
||||
|
||||
## Installation
|
||||
|
||||
Add the plugin to your Redmine installation's `plugins` folder, run `bundle
|
||||
|
||||
Reference in new issue
Block a user