Some more tweaks to the tex_list feature
This commit is contained in:
parent
7f7182afea
commit
9c11c384d4
|
@ -198,6 +198,11 @@ EOL
|
||||||
else
|
else
|
||||||
@tex_content = 'TeX export only supported with the Markdown text filters.'
|
@tex_content = 'TeX export only supported with the Markdown text filters.'
|
||||||
end
|
end
|
||||||
|
if @tex_content == ''
|
||||||
|
flash[:error] = "You didn't select any pages to export."
|
||||||
|
redirect_to :back
|
||||||
|
return
|
||||||
|
end
|
||||||
expire_action :controller => 'wiki', :web => @web.address, :action => 'list', :category => params['category']
|
expire_action :controller => 'wiki', :web => @web.address, :action => 'list', :category => params['category']
|
||||||
render(:layout => 'tex')
|
render(:layout => 'tex')
|
||||||
end
|
end
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<% if params['category'] -%>
|
<% if params['category'] -%>
|
||||||
<input type="hidden" name="category" value="<%= params['category'] %>"/>
|
<input type="hidden" name="category" value="<%= params['category'] %>"/>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<ul id="sortable_pages" style="list-style-type:none">
|
<ul id="sortable_pages">
|
||||||
<% @pages_in_category.each do |page| %>
|
<% @pages_in_category.each do |page| %>
|
||||||
<% content_tag_for :li, page do %>
|
<% content_tag_for :li, page do %>
|
||||||
|
|
||||||
|
|
|
@ -420,6 +420,10 @@ font-size: 1em;
|
||||||
line-height: 1.125;
|
line-height: 1.125;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul#sortable_pages {
|
||||||
|
list-style-type:none;
|
||||||
|
padding-left:0;
|
||||||
|
}
|
||||||
ul#sortable_pages li {
|
ul#sortable_pages li {
|
||||||
border: 1px solid #FFF;
|
border: 1px solid #FFF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue