Project

General

Profile

Add a highly visible notice to top of 'new issue' page...

Added by Anonymous almost 16 years ago

...stating that this is not a test/demo site! Something in yellow or red with a big exclamation warning sign ... maybe even use blink tags too (hrmm - that's going a bit far).

I've noticed a lot test tickets being put in the system lately. This may be an easy customisation to the site that points people in the direction of the demo site and reduces the constant ticket opening/closing.


Replies (17)

RE: Add a highly visible notice to top of 'new issue' page... - Added by Thomas Lecavelier almost 16 years ago

I'm damn ok for that :) Just a little hack to CSS should do the trick...

PS: blink make you blind, don't use them ;) A big red-border box with big police should prevent dumb people to use redmine as a sandbox...

RE: Add a highly visible notice to top of 'new issue' page... - Added by Anonymous almost 16 years ago

PS: blink make you blind, don't use them

No, it's OK. Blink won't make you blind if you use it in combination with the Marquee tag :)

RE: Add a highly visible notice to top of 'new issue' page... - Added by Jean-Philippe Lang almost 16 years ago

I agree. redmine.org should be upgraded this week-end so I'll try to add it.

RE: Add a highly visible notice to top of 'new issue' page... - Added by Joe Chin about 15 years ago

Jean-Philippe Lang wrote:

I agree. redmine.org should be upgraded this week-end so I'll try to add it.

Hi, how were you able to add the high visibility notice to the "new issues" page. On my redmine site I would like to be able to do something similar. I've edited the new.rhtml view but it's hard coded html. What's a practical place to put the notice?

RE: Add a highly visible notice to top of 'new issue' page... - Added by Maxim Krušina about 15 years ago

btw: I think that only solution for this is something like machine gun ;)

RE: Add a highly visible notice to top of 'new issue' page... - Added by Ben Blanco about 15 years ago

We have the very same need - though we use the multi-project capability of redmine, so ideally we'd prefer to only display this message on one of our Project's New Issue tab. Can this be done?

If not, how can we tweak our redmine so as to display a standard message such as is the case here on www.redmine.org ?

I've checked wiki and searched around but didn't have any luck on finding this info.

Thanks for any help/feedback on this!

RE: Add a highly visible notice to top of 'new issue' page... - Added by Ben Blanco about 15 years ago

Any one can help with this? I see from the thread that the best route to implement such a message is via a CSS edit - can someone indicate which CSS file - and ideally a snippet/example of code edit?

We need this so bad, we're happy to gift you a bottle of Champagne! - Added by Ben Blanco about 15 years ago

Hi All,

I am still stuck on this issue, and getting pressure to get this message in place on our redmine... So, if anyone can help us here, explaining what to do..., we'll ship you a bottle of Champagne!

Thanks ;)

RE: Add a highly visible notice to top of 'new issue' page... - Added by Mischa The Evil about 15 years ago

Ben Blanco wrote:

So, if anyone can help us here, explaining what to do..., we'll ship you a bottle of Champagne!

Does this forum-message fullfill your need? In that case I'd like to opt-in for that bottle of champagne... :-)

HTH...

RE: Add a highly visible notice to top of 'new issue' page... - Added by Ben Blanco about 15 years ago

Hi Mischa,

Yes this definitely should fulfill our need!

As mentioned in that thread, we'll be looking forward to when this can be customized across projects - but we needed at least a global one!

How can I get ahold of your shipping address? can you send me by email?

And thanks again ;)

RE: Add a highly visible notice to top of 'new issue' page... - Added by Mischa The Evil about 15 years ago

Ben Blanco wrote:

Yes this definitely should fulfill our need!

Good you've fixed your (urgent, global) need for it...

Ben Blanco wrote:

How can I get ahold of your shipping address? can you send me by email?

I wasn't thát serious... A bottle of champagne against a link to an old forum-message I've posted containing a hackish patch to extent a Redmine view is not a fair deal imho... LOL...

Mischa.

RE: Add a highly visible notice to top of 'new issue' page... - Added by Ben Blanco about 15 years ago

Hi Mischa,

Our offer was serious - we needed help & you pointed us in the right direction - as you wish, let me know ;) We'd also like to send one to Jean-Philippe as redmine is really a great project - not sure if he'd be interested - if you're reading this too, let me know as well ;)

We had searched redmine, but guess we should have tried harder. Just ran a search anew, and limiting it to forums, New Issue brings 230+ results, we must have stopped after several first results' pages. If we'd searched "New Issue" we might have found it, 3rd page. Not sure how hard/easy a relevance algorithm could be added to search engine, would be useful. Or maybe Gmail-styled conversation view of results or forum-results, so as to better limit/focus these...?

Coming back onto this topic though, do you know of a way to refer to the current project instance?

i.e. we'd like to further tweak this so as to only display the message if New.rhtml is being rendered for project ABC... something like:

if ProjectName="ABC" then
      Render(warning)
else
endif

Kindly ignore amateurism above - not a programmer ;)

Ben

RE: Add a highly visible notice to top of 'new issue' page... - Added by Eric Davis about 15 years ago

Ben Blanco wrote:

Coming back onto this topic though, do you know of a way to refer to the current project instance?

Use the @project object.

Only show for the Project with the identifier of 'redmine'

<% if @project && @project.identifier == Project.find_by_identifier('redmine') %>
  <p>This paragraph will only show on the 'redmine' project</p>
<% end %>

Or if you want to show the message for all projects except for 'redmine'

<% unless @project && @project.identifier == Project.find_by_identifier('redmine') %>
  <p>This paragraph will show on all projects except for the 'redmine' project</p>
<% end %>

(The if @project &&... part will protect the code from an Error if @project isn't set)

Eric

RE: Add a highly visible notice to top of 'new issue' page... - Added by Ben Blanco about 15 years ago

Hi Eric,

We'll give this a try - Thanks ;)

Ben

RE: Add a highly visible notice to top of 'new issue' page... - Added by Eric Davis over 14 years ago

James reported a bug on my forum post above... The current project should be comparied to the target project, not the identifier (I also removed a guard clause).

<% if @project == Project.find_by_identifier('redmine') %>
  <p>This paragraph will only show on the 'redmine' project</p>
<% end %>

Eric

Spam removed - Added by Hewzerebazy Hewzerebazy over 14 years ago

Spam removed by Mischa The Evil.

    (1-17/17)