Differences

This shows you the differences between two versions of the page.

Link to this comparison view

72:project_state [2018/07/17 12:25] (current)
bkkr created
Line 1: Line 1:
 +[[:​72:​configure_stages|Configure the Stages Server]]
 +
 +====== Project State ======
 +
 +With Stages you have the possibility to assign specific states to your projects. Of course, the assignment and in particular the change of the project state should only be done by authorized users.
 +
 +Before using the project state feature, the available states have to be defined. Therefore they have to be entered into the''<​font inherit/​Courier New,​Courier,​monospace;;​inherit;;​inherit><​PKITHOME>/​WEB-INF/​conf/​PKitConfig.xml</​font>'' ​ configuration file. The following example describes such a configuration.
 +
 +<​code>​
 +<​quickview>​
 + <​projectstate name=""/>​
 + <​projectstate name="​red"/>​
 + <​projectstate name="​yellow"/>​
 + <​projectstate name="​green"/>​
 +</​quickview>​
 +</​code>​
 +
 +To support an international view of the states, you have to add one line for every available project state in ''<​font inherit/​Courier New,​Courier,​monospace;;​inherit;;​inherit><​PKITHOME>/​WEB-INF/​classes/​LocalPKit*.properties</​font>''​. For your convenience,​ the preceding project states are already preconfigured in ''<​font inherit/​Courier New,​Courier,​monospace;;​inherit;;​inherit><​PKITHOME>/​WEB-INF/​classes/​PKit*.properties</​font>''​.
 +
 +You can use them as templates for new project states:
 +
 +<​code>​
 +quickview.main.state. = Undefined
 +quickview.main.state.red = Red
 +quickview.main.state.yellow = Yellow
 +quickview.main.state.green = Green
 +</​code>​
 +
 +After the assignment of a state, the project names are shown in a specific color in the project navigation tree. Therefore each project state is associated to one color. These colors can be configured in ''<​font inherit/​Courier New,​Courier,​monospace;;​inherit;;​inherit><​PKITHOME>/​custom.css</​font>''​ Again the preceding states are already pre-configured in  ''<​font inherit/​Courier New,​Courier,​monospace;;​inherit;;​inherit><​PKITHOME>/​standard.css</​font>''​.
 +
 +<​code>​
 +.projectstate_{}
 +.projectstate_red{ background-color:#​ff7070 }
 +.projectstate_yellow{ background-color:#​ffff70 }
 +.projectstate_green{ background-color:#​70ff70 }
 +</​code>​
 +