Changes in page_edit

This commit is contained in:
Christophe Vilayphiou committed 2012-05-13 20:13:26 +08:00
1 parent 82fa85def8
commit 4685952bd6
7 files changed
+132 -68

No files matched your search

+1 -1
View File
@@ -175,6 +175,7 @@ module ParserCommon
ret << "<div id='#{content['name']}' part_id='#{part.id}' class='editable' style='border:solid 1px; margin:5px; padding:5px;'>" if part
ret << "<div class='edit_link' style='display:none'>"
ret << " <a href='#{edit_admin_page_part_path(part.id)}' class='nav'>#{t(:edit)}</a>" if part
ret << '</div>'
end
case part.kind
when 'text'
@@ -189,7 +190,6 @@ module ParserCommon
else
''
end if part
ret << '</div>' if edit
end
scope = "<#{content.name}"
content.attributes.each_pair do |key, value|