<%- end %>
-
+
+
+
diff --git a/assets/stylesheets/videos.css b/assets/stylesheets/videos.css
index bbf8328..c6aa31c 100644
--- a/assets/stylesheets/videos.css
+++ b/assets/stylesheets/videos.css
@@ -28,6 +28,7 @@ ul.videos li {
.video.single dt {
font-weight: bold;
display: block;
+ width: 100px;
}
.video input {
diff --git a/init.rb b/init.rb
index 51f0b41..e1bf165 100644
--- a/init.rb
+++ b/init.rb
@@ -61,3 +61,14 @@
END
end
end
+
+Redmine::WikiFormatting::Macros.register do
+ desc "Provides a link to a video with the title of the video as the link text.\n" +
+ "Usage examples:\n\n" +
+ " !{{video_link(id)}}\n"
+ macro :video_link do |o, args|
+ video_id = args[0]
+ video = Video.find(video_id)
+ VideosHelper.link_to_video(video)
+ end
+end