Go to file
2018-11-29 12:08:36 +01:00
app Model refactoring 2018-11-29 12:08:36 +01:00
assets Add template for default query settings 2018-11-24 19:21:57 +01:00
config update translation FR and IT 2018-11-28 16:43:03 +01:00
db/migrate Working on Redmine 4 support 2018-07-15 18:02:52 +02:00
docs Updated to Font Awesome 5.5.0 2018-11-12 09:43:57 +01:00
lib fix for new rubocop version 2018-10-26 19:39:29 +02:00
test Model refactoring 2018-11-29 12:08:36 +01:00
.codeclimate.yml Exclude tests with codeclimate 2017-06-07 22:12:11 +02:00
.eslintrc.yml Switching to fa5 2017-12-11 15:12:01 +01:00
.gitignore Test new quality tools 2018-11-29 09:14:52 +01:00
.reek Add reek configuration 2018-11-29 09:39:54 +01:00
.rubocop.yml Adjust rubocop settings 2018-11-17 08:18:46 +01:00
.slim-lint.yml Adjust slim-lint 2018-11-01 09:35:05 +01:00
.stylelintrc.json stylelint configuration 2017-12-12 22:10:10 +01:00
.travis.yml Use latest ruby version in travis tests 2018-11-26 06:19:24 +01:00
CHANGELOG.rst More compatibility with autocomplete_users 2018-11-28 19:19:07 +01:00
Gemfile Test new quality tools 2018-11-29 09:14:52 +01:00
init.rb CSS fix for project macro 2018-11-21 19:52:40 +01:00
LICENSE rename GPL.txt to LICENSE for github intration support 2016-09-27 12:17:22 +02:00
README.rst Try use doc index for github 2016-04-24 11:07:26 +02:00

.. Additionals documentation master file, created by
   sphinx-quickstart on Sat Apr 23 16:31:21 2016.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

.. _Redmine: https://www.redmine.org
.. _Ruby: https://www.ruby-lang.org
.. _Gemfile: https://github.com/alphanodes/additionals/blob/master/Gemfile

Welcome to Additionals Plugin for Redmine
=========================================

Additionals is a `Redmine`_ plugin for customizing Redmine, providing wiki macros and act as a library/function provider for other Redmine plugins.

This plugin is the successor of `Redmine Tweaks <https://github.com/alphanodes/redmine_tweaks>`_


* Documentation: https://additionals.readthedocs.io
* Redmine.org plugin page: https://www.redmine.org/plugins/additionals
* Github: https://github.com/alphanodes/additionals

.. image:: https://readthedocs.org/projects/additionals/badge/?version=latest
   :target: https://additionals.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://api.codeclimate.com/v1/badges/d92c0bda57f80e7c76b7/maintainability
   :target: https://codeclimate.com/github/AlphaNodes/additionals/maintainability
   :alt: Maintainability

.. image:: https://travis-ci.org/AlphaNodes/additionals.svg?branch=master
   :target: https://travis-ci.org/AlphaNodes/additionals

.. image:: https://img.shields.io/badge/rate%20at-redmine.org-blue.svg?style=flat
   :target: https://www.redmine.org/plugins/additionals
   :alt: Rate at redmine.org

Requirements
------------

+--------------------+----------------------+
| `Redmine`_ version | >= 3.4.0             |
+--------------------+----------------------+
| `Ruby`_ version    | >= 2.2.0             |
+--------------------+----------------------+
| Gem packages       | see `Gemfile`_       |
+--------------------+----------------------+


Installation
------------

Install ``additionals`` plugin for `Redmine`_.

.. code-block:: bash

  $ cd $REDMINE_ROOT
  $ git clone -b v2-stable git://github.com/alphanodes/additionals.git plugins/additionals
  $ bundle install --without development test
  $ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
  $
  $ # if you want to use smiley/emoji legacy support, you have to put emoji icons to
  $ # $REDMINE_ROOT/public/images/emoji
  $ # To obtain image files, run the gemoji extract command on macOS Sierra or later:
  $ bundle exec gemoji extract public/images/emoji
  $
  $ # if you to not have macOS, you can put these files manually to $REDMINE_ROOT/public/images/emoji
  $ # see https://github.com/github/gemoji for more infos

Restart your application server (apache with passenger, nginx with passenger, unicorn, puma, etc.) and ``Additionals`` is ready to use.

More information about installation of Redmine plugins, you can find in the official `Redmine plugin documentation <https://www.redmine.org/projects/redmine/wiki/Plugins>`_.


Uninstall
---------

Uninstall ``additionals`` plugin for `Redmine`_.

.. code-block:: bash

  $ cd $REDMINE_ROOT
  $ bundle exec rake redmine:plugins:migrate NAME=additionals VERSION=0 RAILS_ENV=production
  $ rm -rf plugins/additionals


Features
--------

* use "Project guide" on project overview page
* global header for all projects
* global footer for all projects
* welcome text for login page
* global sidebar content support
* set info message above new ticket (e.g. for guidelines)
* wiki macros for:

  * cryptocompare
  * date
  * fa
  * gihub gist
  * gmap
  * group_users
  * iframe
  * issues
  * members
  * meteoblue
  * new_issue
  * projects
  * reddit
  * redmine.org issue and wiki page (redmine_issue and reminde_wiki)
  * slideshare
  * tradingview
  * twitter
  * user
  * vimeo
  * youtube

* option to remove "My page" and/or "Help" from top menu
* customize top menu items
* disable (hide) modules for projects
* open external urls in new window
* smiley/emoji legacy support
* anonymize referrer for external urls
* hide role in project memberbox
* change issue author
* spam protection on registration form
* add involved issue users as watcher automatically
* create issue on user profile
* "assign to me" link on issue
* change issue state on sidebar
* configurable issue rules

  * freeze closed issue
  * closing issue with open sub issues
  * change assigned_to automatically, if issue status changes
  * assigned_to has changed, but status change is required, too


Developer features
------------------

As Redmine does not support asset pipeline, we need to install Javascript plugins as Redmine plugins to load them globally.

If no common files are used as library plugin, every plugin has to deliver the same files. And if more
than one version of a library is delivered with each Redmine plugin, there is a problem.

Therefore if developer uses this plugin for the provided libraries, everything works smoothly.
Don't worry, if you only need a subset of the provided libraries. If you do not load a library, it is not used.

It provides :

* `bootstrap-datepicker 1.8.0 <https://github.com/uxsolutions/bootstrap-datepicker>`_
* `d3 3.5.17 <https://d3js.org/>`_
* `d3plus v2.0.0-alpha.17 <https://d3plus.org/>`_
* `FontAwesome 5.5.0 <https://fontawesome.com/>`_
* `mermaid 8.0.0-rc8 <https://github.com/knsv/mermaid/>`_
* `nvd3 1.8.6 <https://github.com/novus/nvd3>`_
* `ZeroClipboard 2.3.0 <https://github.com/zeroclipboard/zeroclipboard>`_

And a set of various Rails helper methods (see below).

It provides the following Rails helper methods :

Libraries assets loader
-----------------------

.. code-block:: ruby

  additionals_library_load(module_name)


This method loads all JS and CSS files needed by the required module.

The following modules are available :

* d3
* d3plus
* mermaid
* nvd3
* font_awesome
* notify
* zeroclipboard


Contact and Support
--------------------

I am glad about your feedback on the plugin, `pull requests <https://github.com/alphanodes/additionals/pulls>`_, `issues <https://github.com/alphanodes/additionals/issues>`_, whatever. Feel free to contact me for any questions.


.. toctree::
    :maxdepth: 2

    manual
    macros
    tasks
    new_feature
    changelog