summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-26 16:36:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-26 16:36:56 +0000
commitd40bf201310e5f2bbb0c7a2a3e33b4957708c495 (patch)
tree6f45891876a6e454153c3b2fb6c8ba8a5cedfa8c /extra
parent5b96d1b083a82d3ae68072c77af9521e720a3af8 (diff)
downloadredmine-d40bf201310e5f2bbb0c7a2a3e33b4957708c495.tar.gz
redmine-d40bf201310e5f2bbb0c7a2a3e33b4957708c495.zip
Allow My Page blocks to be added to from a plugin (#2840).
Partials must be placed under the app/views/my/blocks directory of the plugin. An example can be found in the sample plugin. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2529 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r--extra/sample_plugin/app/views/my/blocks/_sample_block.rhtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/sample_plugin/app/views/my/blocks/_sample_block.rhtml b/extra/sample_plugin/app/views/my/blocks/_sample_block.rhtml
new file mode 100644
index 000000000..c19e49739
--- /dev/null
+++ b/extra/sample_plugin/app/views/my/blocks/_sample_block.rhtml
@@ -0,0 +1,3 @@
+<h3>Sample block</h3>
+
+You are <strong><%= h(User.current) %></strong> and this is a sample block for My Page added from a plugin.