From 9d4ed9a6ab0e1afa2ffac06679f4f1dd501a1ff9 Mon Sep 17 00:00:00 2001 From: manson Date: Tue, 12 Aug 2014 11:39:20 +0800 Subject: [PATCH] Add new widget method for announcement --- .../modules/announcement/_widget3.html.erb | 28 +++++++++++++++++++ .../modules/announcement/info.json | 5 ++++ 2 files changed, 33 insertions(+) create mode 100644 app/templates/orbit_bootstrap/modules/announcement/_widget3.html.erb diff --git a/app/templates/orbit_bootstrap/modules/announcement/_widget3.html.erb b/app/templates/orbit_bootstrap/modules/announcement/_widget3.html.erb new file mode 100644 index 0000000..450e0e4 --- /dev/null +++ b/app/templates/orbit_bootstrap/modules/announcement/_widget3.html.erb @@ -0,0 +1,28 @@ +
+

+ {{widget-title}} +

+
+
+
+
+ +
+
+ + {{status}} + +
+
{{week}}
+
{{day}}
+
{{month}} {{year}}
+
+

+ {{title}} +

+

{{subtitle}} Read More ยป

+
+
+
+
+
\ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/announcement/info.json b/app/templates/orbit_bootstrap/modules/announcement/info.json index d276730..e58372e 100644 --- a/app/templates/orbit_bootstrap/modules/announcement/info.json +++ b/app/templates/orbit_bootstrap/modules/announcement/info.json @@ -17,5 +17,10 @@ "name" : "Widget with image", "thumbnail" : "thumbnail-block.png" } + { + "filename" : "widget3", + "name" : "Widget with full date", + "thumbnail" : "thumbnail-block.png" + } ] } \ No newline at end of file