Skip to content

Commit

Permalink
Merge tag '2.39.5.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
carabalb committed Oct 9, 2024
2 parents d27b218 + 87eb3bc commit 152f9c3
Show file tree
Hide file tree
Showing 35 changed files with 72 additions and 34 deletions.
2 changes: 1 addition & 1 deletion onebusaway-nyc-acta-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-acta-webapp</artifactId>
<packaging>war</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ strong {
padding-bottom: 1.0em;
}

#mobile-survey {
padding-top: 1.0em;
padding-bottom: 1.0em;
}

/* search panel */
#searchPanel form {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-admin-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-admin-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-api-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>

<artifactId>onebusaway-nyc-api-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-api-lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>onebusaway-nyc-api-lib</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-api-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-api-webapp</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-gtfsrt-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-gtfsrt-integration-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-gtfsrt-lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-gtfsrt-lib</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-gtfsrt-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-gtfsrt-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-gtfsrt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-gtfsrt</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-integration-tests</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions onebusaway-nyc-ops-api-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<properties>
<spring.version>5.2.20.RELEASE</spring.version>
Expand Down Expand Up @@ -153,7 +153,7 @@
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-api-lib</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-presentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-presentation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-queue-apc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-queue-apc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-queue-broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-queue-broker</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-queue-http-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-queue-http-proxy</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-queue-realtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-queue-realtime</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-queue-subscriber/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-queue-subscriber</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-queue-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-queue-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-report-archive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-report-archive</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-report</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-siri-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-siri-support</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-sms-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-sms-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-tdm-adapters/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-tdm-adapters</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-tdm-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-tdm-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-transit-data-federation-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-transit-data-federation-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-transit-data-federation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-transit-data-federation</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-transit-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-transit-data</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-util</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-vehicle-tracking-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-vehicle-tracking-webapp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-vehicle-tracking/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<artifactId>onebusaway-nyc-vehicle-tracking</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion onebusaway-nyc-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>onebusaway-nyc</artifactId>
<groupId>org.onebusaway</groupId>
<version>2.39.7</version>
<version>2.39.5.8</version>
</parent>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-nyc-webapp</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.GregorianCalendar;
import java.util.Map;

import org.onebusaway.nyc.util.configuration.ConfigurationService;
import org.onebusaway.presentation.impl.NextActionSupport;
import org.onebusaway.users.client.model.UserBean;
import org.onebusaway.users.services.CurrentUserService;
Expand Down Expand Up @@ -47,6 +48,9 @@ public long getTime() {

@Autowired
protected CurrentUserService _currentUserService;

@Autowired
private ConfigurationService _configurationService;

public boolean isAdminUser() {
return _currentUserService.isCurrentUserAdmin();
Expand Down Expand Up @@ -107,4 +111,24 @@ protected UserBean getCurrentUser() {
return user;
}

public String getSurveyText() {
return _configurationService.getConfigurationValueAsString(
"display.surveyTextMobile", "Take a brief survey to help us improve your ride");
}

public String getSurveyLinkText() {
return _configurationService.getConfigurationValueAsString(
"display.surveyLinkTextMobile", "mta.info/csurvey");
}

public String getSurveyLinkUrl() {
return _configurationService.getConfigurationValueAsString(
"display.surveyLinkUrlMobile", "https://mta.info/csurvey");
}

public Boolean getShowSurvey() {
return _configurationService.getConfigurationValueAsBoolean(
"display.showSurveyMobile", false);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,17 @@
</div>

<decorator:body />

<div id="footer">
<s:if test="%{getShowSurvey() &amp;&amp; getSurveyText() != null &amp;&amp; !getSurveyText().isEmpty()
&amp;&amp; getSurveyLinkText() != null &amp;&amp; !getSurveyLinkText().isEmpty()
&amp;&amp; getSurveyLinkUrl() != null &amp;&amp; !getSurveyLinkUrl().isEmpty()}">
<div id="mobile-survey">
<p>
${surveyText} <a href="${surveyLinkUrl}">${surveyLinkText}</a>
</p>
</div>
</s:if>
<p>
<s:url var="mobileHelpUrl" namespace="/m/wiki" action="Help/Index"/>
<a href="${mobileHelpUrl}">Help</a> |
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>onebusaway-nyc</artifactId>
<version>2.39.7</version>
<version>2.39.5.8</version>
<packaging>pom</packaging>
<name>onebusaway-nyc</name>

Expand Down

0 comments on commit 152f9c3

Please sign in to comment.