id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 11565 Reduce code duplication in about and error pages Ryan J Ollos Ryan J Ollos "Having to make modifications in both `error.html` and `about.html` in #11558, I was looking at the duplicated code and possibilities for re-use. The major change that will be proposed is the extraction of code to a new template `environment_info.html`, which is included in both `error.html` and `about.html`. The differences I could see between the information displayed on the two pages and the steps I tool to resolve the differences are: 1. Headings on tables in `about.html`, but no headings in `error.html` - `environment_info.html` has heading on tables. 1. Plugins table on `about.html` also shows disabled plugins - existing behavior preserved on both pages. 1. Plugins table on `error.html` links to frames in stacktrace - existing behavior preserved on both pages. 1. Markup was slightly different, with `div`s enclosing each table on `about.html`, and the `id`s on the `div`s rather than on the `table`s, as `error.html` does - tables in `environment_info.html` now have enclosing `div`s. 1. The plugins section on the error page read //Enabled Plugins//; on the about page it read //Installed Plugins//. The `environment_info.html` template reads //Installed Plugins//, however the `error.html` page continues to show only enabled plugins, whereas the `about.html` page shows both Enabled and Disabled plugins. The change in markup on `error.html` in (4) means that these changes should only be made on the trunk. These changes will also help with #11548, in reducing the number of code changes needed for adding templates to the environment info on `about.html` and `error.html` (at least on the trunk). The CSS for `#content.error` and `#content.about` was very similar. I merged `about.css` into `trac.css`, and merged several of the rules so that they apply to the new template `environment_info.html`. " task closed normal 1.1.2 general 1.0-stable normal fixed about error refactoring Reduced code duplication in the `about.html` and `error.html` templates. " * New template `environment_info.html` renders the //System Information//, //Installed Plugins// and //Configuration Information//. * Added `get_config_info` method to the `Environment` class. * Merged the `about.css` stylesheet into `trac.css`."