Plugins Directory » Rubylode HTML Pages
|
|
Author: | Nick Gorbikoff |
|---|---|---|
| Website: | https://github.com/rubylode/redmine-rubylode-html-pages | |
| Code repository: | https://github.com/rubylode/redmine-rubylode-html-pages | |
| Registered on: | 2026-12-01 (1 day ago) | |
| Current version: | 1.1.0 | |
| Compatible with: | Redmine 7.0.x | |
| User ratings: |
TL;DR: write a page as plain HTML, commit it to the project's git repository, and Redmine shows it. Each project gets a list of pages with a status, and a wiki page or a ticket can embed any of them with a macro.
What you get¶
- An "HTML pages" tab: the list of pages, one view per page, and forms to add, edit and delete them
- The list works like the issue list: filters, a choice of columns, sortable headers and saved queries
- Pages show up in Redmine's search by name and reference
- Pages are read from a git repository attached to the project, through Redmine's own repository, so there is nothing to upload
- The page fills a frame that grows to its height, so a long page scrolls with Redmine
- An optional "Exported on" date per page, for a page that copies something kept elsewhere
{{html_page(release-process)}}embeds a page in a wiki page, a ticket or anywhere else Redmine formats text;{{html_pages}}lists them- Both macros look in another project with its identifier:
{{html_page(other-project:release-process)}} - The tab name is a setting, for example "Runbooks"
- A JSON and XML API for the list and each page
What a page can hold¶
- CSS in
<style>orstyle="", inline SVG anddata:images, images and fonts from a fullhttps://address - Its own JavaScript only when an administrator turns on "Run JavaScript in pages" (off by default)
- Files next to the page in the repository, linked by a relative path, are not served yet
Security¶
- Page scripts are off by default. With them on, a page runs its own JavaScript in the browser of everyone who opens it, so whoever can push to the repository decides what runs
- The page runs in a sandboxed frame with an origin of its own: scripts cannot reach Redmine, its cookies or its session
- The path is checked on save (no
.., only.htmland.htm) and read through Redmine's repository, so it cannot leave the repository - Two permissions: "View HTML pages" and "Manage HTML pages", checked in the list, the page, the macros, search and the API alike
Installation notes
- Put the plugin folder in Redmine's
plugins/directory. The folder must be namedredmine_rubylode_html_pages. - Run
bundle exec rake redmine:plugins:migrate RAILS_ENV=production. It creates thehtml_pagestable, or updates it on an upgrade. - Restart Redmine.
- In the project, open Settings, Modules, and check "Rubylode HTML Pages". In Administration, Roles and permissions, give roles "View HTML pages" and, for the people who edit, "Manage HTML pages".
- In the project, Settings, Repositories, attach the git repository that holds the pages.
From the release zip, unzip it in plugins/. From source:
Changelog
1.1.0 (2026-12-01)
Compatible with Redmine 7.0.x.
Upgrading from 1.0.0: run bundle exec rake redmine:plugins:migrate RAILS_ENV=production and restart Redmine. Pages that rely on their own scripts stop running them: turn on "Run JavaScript in pages" in the plugin settings for them.
Added
- The page list works like the issue list: filters (status, name, reference, exported on, file, last change), a choice of columns, sortable headers and saved queries in the sidebar.
- Pages show up in Redmine's search, by name and reference, with an "HTML pages" checkbox.
- An optional "Exported on" date per page, for a page that copies something kept elsewhere. Shown in the list, on the page, above an embedded page and in the API.
- The setting "Run JavaScript in pages", off by default.
Changed
- With "Run JavaScript in pages" off, a page's own scripts, inline handlers and
javascript:links are blocked, and so are frames and objects inside a page. The frame still resizes to the page. - Uninstalling the plugin also deletes saved page queries.
1.0.0 (2026-12-01)
Compatible with Redmine 7.0.x.