Skip to content

Commit

Permalink
refactor ical button
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Nov 23, 2023
1 parent 116774c commit ec1b22b
Show file tree
Hide file tree
Showing 6 changed files with 4,582 additions and 1,650 deletions.
7 changes: 7 additions & 0 deletions app/views/decidim/calendar/calendar/_calendar_css.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,12 @@
background-color: <%= item[:color]%>;
border-radius: 50%;
}

.button.calendar {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
font-size: 1rem;
margin: 0px 1px 1px 0px;
}
<% end %>
</style>
4 changes: 4 additions & 0 deletions app/views/decidim/calendar/calendar/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

<%= participatory_space_wrapper do %>
<div class="row columns">
<%= render partial: "decidim/meetings/calendar_modal", locals: {
path: calendar_ical_path
} %>
<div class="calendar-filters button-group">
<% available_events.each do |_key,item| %>
<button class="button tiny cal-filter <%= item[:id] %>" id="<%= item[:id] %>"><%= I18n.t(item[:id], scope: "decidim.calendar.index.filters") %></button>
Expand All @@ -22,4 +25,5 @@
</div>
<% end %>


<%= javascript_pack_tag "decidim_calendar" %>
4 changes: 0 additions & 4 deletions app/views/layouts/_calendar_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
name: t("menu.gantt", scope: "decidim.calendar"),
url: calendar_gantt_path,
active: is_active_link?(calendar_gantt_path, :exclusive)
},
{
name: t("menu.ical", scope: "decidim.calendar"),
url: calendar_ical_path,
}
])
%>
Loading

0 comments on commit ec1b22b

Please sign in to comment.