Project

General

Profile

Show some links if Project id matches pre-defined setting

Added by Anadolu Yazılım almost 10 years ago

Hi folks;
I have added a few buttons that goes some link by using view options.

<%= button_to l(:button_manufacture), 'somelink", :class => 'buttons' if User.current.allowed_to?(:view_gantt, @project) %>

Also i would like to show some links if project_id matches pre-defined setting.
I tried this but failed as you can guess.

<%= button_to l(:button_manufacture), '../make_ad.php?design='"#{@issue.id}", :class => 'buttons' if @project.id => '14' %>

Also i had have tried couple of things to achieve my goal but i could not able to have made it.

Do you have any ideas or suggestions how can i do this?