-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Disable author tooltip (#113) * test: Add specs for user presenter * fix: Set has_tooltip to false for user presenter * revert: "fix: Disable author tooltip (#113)" (#116) This reverts commit 7639d0a. * fix: Remove Map from proposals index page * fix: Remove map * fix: Allow to configure Rails log level in dev mode * fix: Ignore missing i18n keys * fix: Add index.js.erb to fix sorting buttons
- Loading branch information
1 parent
82ed076
commit 0368f0e
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<%= render partial: "decidim/shared/component_announcement" %> | ||
|
||
<%= render partial: "voting_rules" %> | ||
<div class="row columns"> | ||
<div class="title-action"> | ||
<h2 id="proposals-count" class="title-action__title section-heading"> | ||
<%= render partial: "count" %> | ||
</h2> | ||
<% if current_settings.creation_enabled && current_component.participatory_space.can_participate?(current_user) %> | ||
<%= action_authorized_link_to :create, new_proposal_path, class: "title-action__action button small", data: { "redirect_url" => new_proposal_path } do %> | ||
<%= t(".new_proposal") %> | ||
<%= icon "plus", role: "img", "aria-hidden": true %> | ||
<% end %> | ||
<% end %> | ||
|
||
<% if component_settings.collaborative_drafts_enabled? %> | ||
<%= link_to t(".collaborative_drafts_list"), collaborative_drafts_path, class: "title-action__action button small hollow ml-s" %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="columns mediumlarge-4 large-3"> | ||
<%= render partial: "filters_small_view" %> | ||
<div class="card card--secondary show-for-mediumlarge"> | ||
<%= render partial: "filters" %> | ||
</div> | ||
</div> | ||
<div id="proposals" class="columns mediumlarge-8 large-9" aria-live="polite"> | ||
<%= render partial: "proposals" %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
var $proposals = $('#proposals'); | ||
var $proposalsCount = $('#proposals-count'); | ||
var $orderFilterInput = $('.order_filter'); | ||
|
||
$proposals.html('<%= j(render partial: "proposals").strip.html_safe %>'); | ||
$proposalsCount.html('<%= j(render partial: "count").strip.html_safe %>'); | ||
$orderFilterInput.val('<%= order %>'); | ||
|
||
var $dropdownMenu = $('.dropdown.menu', $proposals); | ||
$dropdownMenu.foundation(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters