Skip to content

Commit

Permalink
minor tidying-up
Browse files Browse the repository at this point in the history
  • Loading branch information
will-r committed Oct 20, 2010
1 parent 8257c7e commit b609906
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions app/views/admin/downloads/index.html.haml
@@ -1,7 +1,5 @@
- include_stylesheet 'admin/downloads'

%h1 Authorised Downloads

#downloads_table.outset
%table#downloads.index{:cellpadding => "0", :cellspacing => "0", :border => "0"}
%thead
Expand All @@ -25,9 +23,8 @@
= number_to_human_size(dl.document_file_size)
%td.groups
= dl.groups.map {|g| link_to g.name, admin_group_url(g) }.join(', ')
%td.remove
= link_to( image('remove', :alt => 'Remove Download'), :action => 'destroy', :id => dl, :confirm => "are you sure you want to completely remove #{dl.name}?")

%td.actions
= link_to( image('minus') + ' remove Download', admin_reader_url(reader), :method => :delete, :class => 'action', :confirm => "are you sure you want to completely remove #{dl.name}?")

#actions
= pagination_for @downloads
Expand Down
2 changes: 1 addition & 1 deletion downloads_extension.rb
Expand Up @@ -19,7 +19,7 @@ def activate

if respond_to?(:tab)
tab("Readers") do
add_item("Downloads", "/admin/readers/downloads")
add_item("Downloads", "/admin/readers/downloads", :before => 'Settings')
end
else
admin.tabs.add "Downloads", "/admin/readers/downloads", :visibility => [:all]
Expand Down
5 changes: 1 addition & 4 deletions radiant-downloads-extension.gemspec
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{radiant-downloads-extension}
s.version = "0.5.1"
s.version = "0.5.2"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["spanner"]
Expand Down Expand Up @@ -71,16 +71,13 @@ Gem::Specification.new do |s|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<radiant>, [">= 0.9.0"])
s.add_runtime_dependency(%q<radiant-reader_group-extension>, [">= 0"])
s.add_runtime_dependency(%q<paperclip>, [">= 0"])
else
s.add_dependency(%q<radiant>, [">= 0.9.0"])
s.add_dependency(%q<radiant-reader_group-extension>, [">= 0"])
s.add_dependency(%q<paperclip>, [">= 0"])
end
else
s.add_dependency(%q<radiant>, [">= 0.9.0"])
s.add_dependency(%q<radiant-reader_group-extension>, [">= 0"])
s.add_dependency(%q<paperclip>, [">= 0"])
end
end

0 comments on commit b609906

Please sign in to comment.