@@ -22,10 +22,12 @@ env:
|
|||||||
global:
|
global:
|
||||||
- KNAPSACK_PRO_FIXED_QUEUE_SPLIT=true
|
- KNAPSACK_PRO_FIXED_QUEUE_SPLIT=true
|
||||||
- KNAPSACK_PRO_LOG_LEVEL=info
|
- KNAPSACK_PRO_LOG_LEVEL=info
|
||||||
- KNAPSACK_PRO_CI_NODE_TOTAL=2
|
- KNAPSACK_PRO_CI_NODE_TOTAL=4
|
||||||
matrix:
|
matrix:
|
||||||
- KNAPSACK_PRO_CI_NODE_INDEX=0
|
- KNAPSACK_PRO_CI_NODE_INDEX=0
|
||||||
- KNAPSACK_PRO_CI_NODE_INDEX=1
|
- KNAPSACK_PRO_CI_NODE_INDEX=1
|
||||||
|
- KNAPSACK_PRO_CI_NODE_INDEX=2
|
||||||
|
- KNAPSACK_PRO_CI_NODE_INDEX=3
|
||||||
notifications:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
secure: 18E9SU0SR/9knRvCMYwVqFCqVTBT6qJtZQ/gadpheqUPPlcLoQfnlIzJkLIYqkE0sn1nkBE5Bt2I90FU53p0NkrTEmSGlQXcN1vEXM8EXMaoVf3NBsIJeleMwt9VTojzo81EgIi6x7q3fDiFORJ4rqOGd9XkeLn5yrAtIkdaenVs0bhS5s24FP76hKqO37IFLG2v3EEqxg5k31oW6yhyP35Mxns+AGbfaZbxEy4XbCoU65KFuYhBsVZ/y1evOl/wcre2fCAoT2uKeqUWGEcDzH7oSCz7vfk7iO9BZnO++v7oj8mr/nrZL1KMFt77eqtdT51XQoJcchgJC/R9km5hRGkQqFCHhqPcBxo5c3p+jauL0kLaqTggeLDv2FQ2huJ8FSJ4ADac+n3g7wT7BX7HJlCvK0nbooY1JtBlk7+6/pw6ksSFIOo0FHg5gXN9IlG1tQQuENzzsXULNc6s4nPeT+n78uOp1b0N/Gn06moEBaKgXqqx1yV1XeJ02X8n3uDZxPuX3n2bJ4DMIrBjeWApxHAgyOraOzQHNQgJoj4tHlWutF33ApV2tcIMefIzvjM4tIYwIkpfGgohGaTf8eU5X9pqiMgwlDpJHVBsSvpk/Z/Nj7evYznjBiDYqOcXoztsqHrS0C91MaT+eExDfd9HDmThsE07RT7zcP9aElFZA/k=
|
secure: 18E9SU0SR/9knRvCMYwVqFCqVTBT6qJtZQ/gadpheqUPPlcLoQfnlIzJkLIYqkE0sn1nkBE5Bt2I90FU53p0NkrTEmSGlQXcN1vEXM8EXMaoVf3NBsIJeleMwt9VTojzo81EgIi6x7q3fDiFORJ4rqOGd9XkeLn5yrAtIkdaenVs0bhS5s24FP76hKqO37IFLG2v3EEqxg5k31oW6yhyP35Mxns+AGbfaZbxEy4XbCoU65KFuYhBsVZ/y1evOl/wcre2fCAoT2uKeqUWGEcDzH7oSCz7vfk7iO9BZnO++v7oj8mr/nrZL1KMFt77eqtdT51XQoJcchgJC/R9km5hRGkQqFCHhqPcBxo5c3p+jauL0kLaqTggeLDv2FQ2huJ8FSJ4ADac+n3g7wT7BX7HJlCvK0nbooY1JtBlk7+6/pw6ksSFIOo0FHg5gXN9IlG1tQQuENzzsXULNc6s4nPeT+n78uOp1b0N/Gn06moEBaKgXqqx1yV1XeJ02X8n3uDZxPuX3n2bJ4DMIrBjeWApxHAgyOraOzQHNQgJoj4tHlWutF33ApV2tcIMefIzvjM4tIYwIkpfGgohGaTf8eU5X9pqiMgwlDpJHVBsSvpk/Z/Nj7evYznjBiDYqOcXoztsqHrS0C91MaT+eExDfd9HDmThsE07RT7zcP9aElFZA/k=
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
.poll-card {
|
.poll-card {
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: #e7f3fd;
|
background-color: #e7f3fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clipboard-btn {
|
.clipboard-btn {
|
||||||
border-radius: 12pt;
|
border-radius: rem-calc(12);
|
||||||
padding: 0;
|
padding: rem-calc(5) rem-calc(10) rem-calc(10) rem-calc(10);
|
||||||
width: 24pt;
|
height: rem-calc(24);
|
||||||
height: 24pt;
|
|
||||||
padding-top: 5pt;
|
|
||||||
padding-left: 1pt;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ module AdminHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def menu_proposals_dashboard?
|
def menu_proposals_dashboard?
|
||||||
["proposal_dashboard_actions", "administrator_tasks"].include?(controller_name)
|
["actions", "administrator_tasks"].include?(controller_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def official_level_options
|
def official_level_options
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
<% if feature?(:budgets) %>
|
<% if feature?(:budgets) %>
|
||||||
<li class="section-title <%= "is-active" if controller_name == "budgets" ||
|
<li class="section-title <%= "is-active" if controller_name == "budgets" ||
|
||||||
"budget_investment_statuses" %>">
|
controller_name == "budget_investment_statuses" %>">
|
||||||
<%= link_to admin_budgets_path do %>
|
<%= link_to admin_budgets_path do %>
|
||||||
<span class="icon-budget"></span>
|
<span class="icon-budget"></span>
|
||||||
<strong><%= t("admin.menu.budgets") %></strong>
|
<strong><%= t("admin.menu.budgets") %></strong>
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
<strong><%= t("admin.menu.proposals_dashboard") %></strong>
|
<strong><%= t("admin.menu.proposals_dashboard") %></strong>
|
||||||
</a>
|
</a>
|
||||||
<ul <%= "class=is-active" if menu_proposals_dashboard? %>>
|
<ul <%= "class=is-active" if menu_proposals_dashboard? %>>
|
||||||
<li <%= "class=is-active" if controller_name == "proposal_dashboard_actions" %>>
|
<li <%= "class=is-active" if controller_name == "actions" %>>
|
||||||
<%= link_to ProposalDashboardAction.model_name.human(count: 2), admin_proposal_dashboard_actions_path %>
|
<%= link_to ProposalDashboardAction.model_name.human(count: 2), admin_proposal_dashboard_actions_path %>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
<div class="column poll-card" id="<%= dom_id(poll) %>">
|
<div class="column poll-card" id="<%= dom_id(poll) %>">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-section">
|
<div class="card-section">
|
||||||
<p class="text-right">
|
<p class="text-center">
|
||||||
<a href='#' class="button round hollow clipboard-btn" data-clipboard-text="<%= poll_url(poll) %>">
|
<a href='#' class="button round hollow clipboard-btn" data-clipboard-text="<%= poll_url(poll) %>">
|
||||||
<i class="fi-clipboard-notes"></i>
|
<i class="fi-clipboard-notes"></i> <%= t("dashboard.polls.poll.copy_link") %>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<h4 class="text-center"><%= poll.title %></h4>
|
<h4 class="text-center"><%= link_to poll.title, poll %></h4>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<%= t("dashboard.polls.poll.published_on") %>
|
<%= l(poll.starts_at.to_date) %> - <%= l(poll.ends_at.to_date) %>
|
||||||
<%= l(poll.starts_at.to_date) %>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -572,7 +572,7 @@ en:
|
|||||||
links: Links
|
links: Links
|
||||||
additiontal_information: Additional information
|
additiontal_information: Additional information
|
||||||
poll:
|
poll:
|
||||||
published_on: Published on
|
copy_link: Copy link
|
||||||
responses:
|
responses:
|
||||||
one: "%{count} response"
|
one: "%{count} response"
|
||||||
other: "%{count} responses"
|
other: "%{count} responses"
|
||||||
|
|||||||
@@ -572,7 +572,7 @@ es:
|
|||||||
links: Enlaces
|
links: Enlaces
|
||||||
additiontal_information: Información adicional
|
additiontal_information: Información adicional
|
||||||
poll:
|
poll:
|
||||||
published_on: Publicada
|
copy_link: Copiar enlace
|
||||||
responses:
|
responses:
|
||||||
one: "%{count} respuesta"
|
one: "%{count} respuesta"
|
||||||
other: "%{count} respuestas"
|
other: "%{count} respuestas"
|
||||||
|
|||||||
@@ -120,4 +120,16 @@ feature 'Polls' do
|
|||||||
expect(page.current_path).to eq(results_poll_path(poll))
|
expect(page.current_path).to eq(results_poll_path(poll))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scenario 'Poll card' do
|
||||||
|
poll = create(:poll, :expired, related: proposal)
|
||||||
|
|
||||||
|
visit proposal_dashboard_polls_path(proposal)
|
||||||
|
|
||||||
|
within "div#poll_#{poll.id}" do
|
||||||
|
expect(page).to have_content(I18n.l(poll.starts_at.to_date))
|
||||||
|
expect(page).to have_content(I18n.l(poll.ends_at.to_date))
|
||||||
|
expect(page).to have_link(poll.title)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user