summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4f4b3dd)
Since we binary items are probably annexed it is not particularly
helpful to provide direct links to the symlink in the repository,
as this contains basically zero helpful information.
Instead, let's link to the metadata file when available as that should
at least contain _something_ interesting.
def item_source(item = @item)
filename = "content" + item.identifier
def item_source(item = @item)
filename = "content" + item.identifier
+ filebase = filename.chomp(File.extname(filename))
- if File.file? filename then
- return filename
- end
-
- return nil
+ [ if item.binary? then filebase + ".yaml" end,
+ filename].compact.find { |f| File.file? f }
end
def item_uri(item = @item, rep: :default)
end
def item_uri(item = @item, rep: :default)