Standard fix
This commit is contained in:
@@ -23,7 +23,7 @@ module Adamantium
|
|||||||
end
|
end
|
||||||
|
|
||||||
def authors
|
def authors
|
||||||
self.book_author.split(";").join(" ")
|
book_author.split(";").join(" ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_colour
|
def status_colour
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
xml.instruct! "xml-stylesheet", {:href=>"/assets/style.xslt", :type=>"text/xsl"}
|
xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"}
|
||||||
|
|
||||||
xml.channel do |channel|
|
xml.channel do |channel|
|
||||||
channel.title "Daniel Nitsikopoulos"
|
channel.title "Daniel Nitsikopoulos"
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
xml.instruct! "xml-stylesheet", {:href=>"/assets/style.xslt", :type=>"text/xsl"}
|
xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"}
|
||||||
|
|
||||||
xml.channel do |channel|
|
xml.channel do |channel|
|
||||||
channel.title "Daniel Nitsikopoulos"
|
channel.title "Daniel Nitsikopoulos"
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
xml.instruct!
|
xml.instruct!
|
||||||
xml << yield
|
xml << yield
|
||||||
|
@@ -5,7 +5,7 @@ module Admin
|
|||||||
include Deps["commands.media.delete"]
|
include Deps["commands.media.delete"]
|
||||||
|
|
||||||
def handle(req, res)
|
def handle(req, res)
|
||||||
delete.call(path: File.join(Hanami.app.root, "public", "media",req.params[:year], req.params[:path]))
|
delete.call(path: File.join(Hanami.app.root, "public", "media", req.params[:year], req.params[:path]))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -15,7 +15,7 @@ module Admin
|
|||||||
Dir["#{MEDIA_DIR}*"]
|
Dir["#{MEDIA_DIR}*"]
|
||||||
.reverse
|
.reverse
|
||||||
.reject do |path|
|
.reject do |path|
|
||||||
IGNORE_PATHS.any?{|ip| path.match(ip) }
|
IGNORE_PATHS.any? { |ip| path.match(ip) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user