tkh_events 0.0.6 → 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b120abbfb323ffbaac55c65479e67f4f381dc7c2
|
|
4
|
+
data.tar.gz: 4fab01e7372f30c4836138dfae8cb19d227bd8ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b73f6688c3514521b333a3d58bac9b3faa4c72e2ed09f18e28b92b42f3a9b40a70840426f8ba792ddc86f75f9319d08fa6236a5cd6effa14492d40ae77b43a3
|
|
7
|
+
data.tar.gz: f627958060b9cab2fef9703ce275f8738be62feb462ecf41dbf36ed83c22fe670baff51dac3ac4fff65638ae73b380fc683fa32b619dd884184fb16e17f0eafe
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## 0.1
|
|
6
|
+
|
|
7
|
+
* Bumped version to reflect maturation of gem.
|
|
8
|
+
* Fixed local heading variable and added a local variable for number of events displayed in sidebar.
|
|
9
|
+
* Added a local variable in sidebar event partial for optional link to events page.
|
|
10
|
+
* Removed the starting before the date in partial of upcoming events.
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## 0.0.6
|
|
6
14
|
|
|
7
15
|
* Truncated event description in upcoming events sidebar partial.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<% @events.each do |event| %>
|
|
5
5
|
<div class="individual-event-in-list">
|
|
6
6
|
<h3><%= link_to event.name, event %></h3>
|
|
7
|
-
<p class='starting-date'
|
|
7
|
+
<p class='starting-date'><%= l event.starts_at, format: :tkh_default %></p>
|
|
8
8
|
<p>
|
|
9
9
|
<%= event.description %><br />
|
|
10
10
|
<%= link_to 'see details', event %>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
<%
|
|
1
|
+
<% local_assigns[:heading].present? ? heading = local_assigns[:heading] : heading = 'upcoming events' %>
|
|
2
|
+
<% local_assigns[:number_displayed].present? ? number_displayed = local_assigns[:number_displayed] : number_displayed = 5 %>
|
|
3
|
+
|
|
4
|
+
<% @events = Event.published.in_the_future.chronologically.limit(number_displayed) %>
|
|
2
5
|
|
|
3
6
|
<% unless @events.blank? %>
|
|
4
|
-
<h2><%= heading
|
|
7
|
+
<h2><%= heading %></h2>
|
|
5
8
|
<% @events.each do |event| %>
|
|
6
9
|
<div class="sidebar-individual-event">
|
|
7
10
|
<h3><%= link_to event.name, event %></h3>
|
|
@@ -12,4 +15,5 @@
|
|
|
12
15
|
</p>
|
|
13
16
|
</div>
|
|
14
17
|
<% end %>
|
|
18
|
+
<%= local_assigns[:link_to_all_events] unless local_assigns[:link_to_all_events].nil? %>
|
|
15
19
|
<% end %>
|
data/lib/tkh_events/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tkh_events
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: '0.1'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Swami Atma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|