diff options
Diffstat (limited to 'extra/sample_plugin/app/views/example/say_hello.html.erb')
-rw-r--r-- | extra/sample_plugin/app/views/example/say_hello.html.erb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/extra/sample_plugin/app/views/example/say_hello.html.erb b/extra/sample_plugin/app/views/example/say_hello.html.erb index 17aca7bc4..9bfa8cc4f 100644 --- a/extra/sample_plugin/app/views/example/say_hello.html.erb +++ b/extra/sample_plugin/app/views/example/say_hello.html.erb @@ -1,9 +1,15 @@ +<h2>Hello</h2> + <p class="icon icon-example-works"><%= l(:text_say_hello) %></p> <p><label>Example setting</label>: <%= @value %></p> -<%= link_to_if_authorized 'Good bye', :action => 'say_goodbye', :id => @project %> +<%= link_to('Good bye', :action => 'say_goodbye', :id => @project) if User.current.allowed_to?(:example_say_goodbye, @project) %> + +<% content_for :sidebar do %> + <p>Adding content to the sidebar...</p> +<% end %> <% content_for :header_tags do %> - <%= stylesheet_link_tag "example.css", :plugin => "sample_plugin", :media => "screen" %> + <%= stylesheet_link_tag "/plugin_assets/sample_plugin/stylesheets/example.css", :media => "screen" %> <% end %> |