Added wiki macros support. 2 builtin macros are defined: hello_world (sample macro that displays the arguments) and macro_list (display the list of installed macros).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@897 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -64,7 +64,7 @@ end %>
|
||||
<% end %>
|
||||
|
||||
<p><strong><%=l(:field_description)%></strong></p>
|
||||
<%= textilizable @issue.description, :attachments => @issue.attachments %>
|
||||
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
|
||||
|
||||
<% if @issue.attachments.any? %>
|
||||
<%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class="wiki">
|
||||
<%= textilizable content.text, :attachments => content.page.attachments %>
|
||||
<%= textilizable content, :text, :attachments => content.page.attachments %>
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,6 @@ h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%= textilizable @content.text, :wiki_links => :local %>
|
||||
<%= textilizable @content, :text, :wiki_links => :local %>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -20,7 +20,7 @@ h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
|
||||
<% @pages.each do |page| %>
|
||||
<hr />
|
||||
<a name="<%= page.title %>" />
|
||||
<%= textilizable page.content.text, :wiki_links => :anchor %>
|
||||
<%= textilizable page.content ,:text, :wiki_links => :anchor %>
|
||||
<% end %>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user