ruby on rails - Username in "Welcome text" -


how can use current username in welcome text field of redmine?

thanks

that's not possible put of box, can write very simple plugin adds wiki macro. or try 1 below :)

just create new directory in vendor/plugins directory called redmine_username_macro. put code vendor/plugins/redmine_username_macro/index.rb.

require 'redmine' redmine::plugin.register :my_user_plugin   name 'user macro plugin'   url 'http://dev.holgerjust.de/projects/redmine-misc'   author 'holger just'   description 'add macro inserting current user.'   version '0.1' end  redmine::wikiformatting::macros.register   desc "insert name of current user. example: !{{username}}"   macro :username |obj, args|     h(user.current.name)   end end 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -