Nuevo plugin Additionals 2.0.20
This commit is contained in:
parent
a2a901b71b
commit
93e1e28683
354 changed files with 40514 additions and 0 deletions
62
plugins/additionals/docs/macros/user.rst
Executable file
62
plugins/additionals/docs/macros/user.rst
Executable file
|
@ -0,0 +1,62 @@
|
|||
User
|
||||
----
|
||||
|
||||
User wiki macro for Redmine.
|
||||
|
||||
.. function:: {{user_name [, format=FORMAT, avatar=BOOL])}}
|
||||
|
||||
Display link to user profile
|
||||
|
||||
:param string user_name: username (login name) or user id of the user
|
||||
:param string format: custom format of link name. If not specified system settings will be used. You can use format with the same options as for system settings.
|
||||
:param bool avatar: show avatar, if true
|
||||
|
||||
Scope
|
||||
+++++
|
||||
|
||||
This macro works in all text fields with formatting support.
|
||||
|
||||
Examples
|
||||
++++++++
|
||||
|
||||
Link to user profile with id 1
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(1)}}
|
||||
|
||||
Link to user profile with id 1 and show user avatar
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(1, avatar=true)}}
|
||||
|
||||
Link to user profile with login name ``admin`` and show user avatar
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(admin, avatar=true)}}
|
||||
|
||||
Link to user profile with login name ``admin`` with username as link text
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(admin, format=username)}}
|
||||
|
||||
Link to user profile with login name ``admin`` with first name as link text
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(admin, format=firstname)}}
|
||||
|
||||
Link to user profile with login name ``admin`` with last name as link text
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(admin, format=lastname)}}
|
||||
|
||||
Link to user profile with login name ``admin`` with first name and last name as link text
|
||||
|
||||
.. code-block:: smarty
|
||||
|
||||
{{user(admin, format=firstname_lastname)}}
|
Loading…
Add table
Add a link
Reference in a new issue