-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
164 additions
and
147 deletions.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$font-size-base: 16px; | ||
//$font-size-base: 16px; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
table.table.table-bordered.table-striped | ||
thead | ||
tr | ||
th Service Name | ||
th Description | ||
tbody | ||
- service_definitions.find_each do |service_definition| | ||
tr | ||
td= service_definition.raw_data['service_name'] | ||
td= service_definition.raw_data['description'] |
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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
ruby: | ||
provide(:meta_title) { "Open311 Status - 311 API monitoring and analysis" } | ||
.well | ||
.well.mb-3 | ||
strong | ||
| Scanning #{@cities.size} Open311 endpoints every 10 minutes. | ||
For endpoint information visit the <a href="http://wiki.open311.org/GeoReport_v2/Servers" rel="noopener">Open311 Wiki</a>. | ||
|
||
.panel.panel-default | ||
.panel-heading | ||
h3.panel-title Service Requests created during previous 48 hours | ||
.panel-body | ||
.card.card-default.mb-3 | ||
.card-header | ||
h3.card-title Service Requests created during previous 48 hours | ||
.card-body | ||
= line_chart @cities.map { |city| { name: city.name, data: city.bucketed_service_requests } } | ||
|
||
.panel.panel-default | ||
.table-responsive | ||
table.table.table-condensed.table-bordered.table-striped.tablesorter(data-controller="cities") | ||
thead | ||
tr | ||
th Endpoint | ||
th Services | ||
th Requests | ||
th Request Types | ||
th data-sorter='false' | ||
| Submitted requests | ||
span.label.label-info< 48 hours | ||
th Total | ||
th Min/Hour | ||
th Max/Hour | ||
th Avg/Hour | ||
tbody | ||
= render partial: 'city_row_content', layout: 'city_row', collection: @cities, as: :city | ||
.card.card-default.mb-3.card-table | ||
table.table.table-sm.table-bordered.table-striped.tablesorter(data-controller="cities") | ||
thead | ||
tr | ||
th Endpoint | ||
th Services | ||
th Requests | ||
th Request Types | ||
th data-sorter='false' | ||
| Submitted requests | ||
span.badge.badge-info< 48 hours | ||
th Total | ||
th Min/Hour | ||
th Max/Hour | ||
th Avg/Hour | ||
tbody | ||
= render partial: 'city_row_content', layout: 'city_row', collection: @cities, as: :city | ||
|
||
h3 Recent Service Requests | ||
.panel.panel-default | ||
.card.card-default.card-table | ||
= render 'service_requests', service_requests: @service_requests | ||
.text-center | ||
= link_to "View all Service Requests", requests_path, class: 'btn btn-default' | ||
|
||
.text-center.mt-3 | ||
= link_to "View all Service Requests", requests_path, class: 'btn btn-outline-dark' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/ Rails flash messages styled for Bootstrap 3.0 | ||
/ Rails flash messages styled for Bootstrap 5.0 | ||
- flash.each do |name, msg| | ||
- if msg.is_a?(String) | ||
div class="alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'}" | ||
button.close "aria-hidden"="true" "data-dismiss"="alert" type="button" × | ||
div class="alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'} alert-dismissible fade show" role="alert" | ||
button.close "aria-hidden"="true" "data-bs-dismiss"="alert" type="button" × | ||
div id="flash_#{name}" | ||
= msg |
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,24 @@ | ||
<nav class="navbar navbar-expand-lg bg-body-tertiary mb-3"> | ||
<div class="container"> | ||
<%= link_to 'Open311 Status', root_path, class: 'navbar-brand' %> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="nav navbar-nav ms-auto"> | ||
<li class="nav-item"> | ||
<%= link_to about_path, class: "nav-link" do %> | ||
<%= fa_icon 'question-circle' %> | ||
About | ||
<% end %> | ||
</li> | ||
<li class="nav-item"> | ||
<%= link_to github_url, target: '_blank', rel: 'noopener', class: "nav-link" do %> | ||
<%= fa_icon 'github-alt' %> | ||
Github | ||
<% end %> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.