Skip to content

Commit

Permalink
Merge pull request #65 from ChristianMurphy/refactor/use-upstream-boo…
Browse files Browse the repository at this point in the history
…tstrap

Refactor: use upstream bootstrap
  • Loading branch information
ChristianMurphy authored Mar 5, 2018
2 parents 3e2099e + b31747e commit 3853608
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 41 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ See also documentation in the [AnnouncementsPortlet wiki on Confluence][].

### Using Encrypted Property Values

You may optionally provide sensitive configuration items -- such as database passwords -- in encrypted format. Use the [Jasypt CLI Tools][] to encrypt the sensitive value, then include it in a `.properties` file like this:
You may optionally provide sensitive configuration items -- such as database passwords -- in encrypted format. Use the [Jasypt CLI Tools][] to encrypt the sensitive value, then include it in a `.properties` file like this:

``` ini
```ini
hibernate.connection.password=ENC(9ffpQXJi/EPih9o+Xshm5g==)
```

Expand All @@ -24,10 +24,13 @@ Specify the encryption key using the `UP_JASYPT_KEY` environment variable.

These dependencies are expected to be loaded by overall uPortal:

* [Font Awesome][] 4, last tested with [Font Awesome 4.7.0][]
* [Font Awesome][] 4, last tested with [Font Awesome 4.7.0][]
* [Bootstrap][] 3, last tested with [Bootstrap 3.3.7][]

[Sponsored Portlet]: https://wiki.jasig.org/display/PLT/Jasig+Sponsored+Portlets
[AnnouncementsPortlet wiki on Confluence]: https://wiki.jasig.org/display/PLT/Announcements+Portlet
[Font Awesome]: http://fontawesome.io/
[Jasypt CLI Tools]: http://www.jasypt.org/cli.html
[Font Awesome 4.7.0]: https://github.com/FortAwesome/Font-Awesome/releases/tag/v4.7.0
[sponsored portlet]: https://wiki.jasig.org/display/PLT/Jasig+Sponsored+Portlets
[announcementsportlet wiki on confluence]: https://wiki.jasig.org/display/PLT/Announcements+Portlet
[font awesome]: http://fontawesome.io/
[bootstrap]: https://getbootstrap.com
[bootstrap 3.3.7]: https://getbootstrap.com/docs/3.3/
[jasypt cli tools]: http://www.jasypt.org/cli.html
[font awesome 4.7.0]: https://github.com/FortAwesome/Font-Awesome/releases/tag/v4.7.0
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@
<groupId>org.jasig.resourceserver</groupId>
<artifactId>resource-server-content</artifactId>
<includes>
<include>rs/bootstrap-namespaced/3.1.1/</include>
<include>rs/fontawesome/4.0.3/</include>
<include>rs/jquery/1.11.0/</include>
<include>rs/jquery-migrate/</include>
<include>rs/jqueryui/1.10.3/</include>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/addAnnouncement.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<script src="<rs:resourceURL value="/rs/jqueryui/1.10.3/jquery-ui-1.10.3.min.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/underscore-min.js"/>" type="text/javascript"></script>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<script type="text/javascript" src="<c:url value="/tinymce/js/tinymce/tinymce.min.js"/>"></script>
Expand Down Expand Up @@ -127,7 +126,7 @@
<portlet:param name="topicId" value="${announcement.parent.id}"/>
</portlet:actionURL>
<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-6 no-col-padding">
<h4><spring:message code="addAnnouncement.header"/> <c:out value="${announcement.parent.title}"/></h4>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/addMembers.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
<portlet:param name="groupKey" value="${groupKey}"/>
</portlet:actionURL>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-6 no-col-padding">
<h4 role="heading">
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/addTopic.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<portlet:param name="action" value="addTopic"/>
</portlet:actionURL>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<script src="<rs:resourceURL value="/rs/jquery/1.11.0/jquery-1.11.0.min.js"/>" type="text/javascript"></script>
Expand Down Expand Up @@ -67,7 +66,7 @@
}
#tooltip h3, #tooltip div { margin: 0; }
</style>
<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-8 no-col-padding">
<h4>
Expand Down
7 changes: 3 additions & 4 deletions src/main/webapp/WEB-INF/jsp/baseAdmin.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<script type="text/javascript" src="<rs:resourceURL value="/rs/jquery-migrate/jquery-migrate-1.2.1.min.js"/>"></script>
<script src="<rs:resourceURL value="/rs/jqueryui/1.10.3/jquery-ui-1.10.3.min.js"/>" type="text/javascript"></script>
</c:if>
<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css" />
<link href="<c:url value="/css/announcements.css"/>" rel="stylesheet" type="text/css" />

<c:if test="${portalAdmin}">
Expand Down Expand Up @@ -106,7 +105,7 @@
}
</script>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-12 no-col-padding">
<div class="nav-links">
Expand Down Expand Up @@ -163,7 +162,7 @@
<c:when test="${topic.subscriptionMethod != 4}">
<table role="presentation">
<tr>
<td>
<td>
<a class="action-icon" href="<portlet:renderURL><portlet:param name="action" value="addTopic"/><portlet:param name="edit" value="${topic.id}"/></portlet:renderURL>" title="<spring:message code="baseAdmin.edit"/>"><i class="fa fa-edit" aria-hidden="true"></i> <spring:message code="baseAdmin.edit"/></a>
</td>
<td>
Expand Down Expand Up @@ -208,7 +207,7 @@
</c:choose>
</td>
<td>
<c:choose>
<c:choose>
<c:when test="${topic.subscriptionMethod != 4}">
<a href="<portlet:renderURL><portlet:param name="action" value="addTopic"/><portlet:param name="edit" value="${topic.id}"/></portlet:renderURL>" title="<spring:message code="baseAdmin.edit"/>"><i class="fa fa-edit"/></a>
</c:when>
Expand Down
1 change: 0 additions & 1 deletion src/main/webapp/WEB-INF/jsp/config.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<c:set var="n"><portlet:namespace/></c:set>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css" />
<link href="<c:url value="/css/announcements.css"/>" rel="stylesheet" type="text/css" />

<portlet:actionURL var="formUrl" escapeXml="false">
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/displayAnnouncements.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
--%>
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<c:set var="n"><portlet:namespace/></c:set>
Expand Down Expand Up @@ -106,7 +105,7 @@
</style>
</c:if>

<div id="${n}container" class="container-fluid bootstrap-styles announcements-container">
<div id="${n}container" class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-12 no-col-padding">
<div class="nav-links">
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/displayFullAnnouncement.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<c:set var="n"><portlet:namespace/></c:set>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<script src="<rs:resourceURL value="/rs/jquery/1.11.0/jquery-1.11.0.min.js"/>" type="text/javascript"></script>
Expand Down Expand Up @@ -58,7 +57,7 @@
});
</script>
<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="nav-links">
<a href="<portlet:renderURL />"><i class="fa fa-arrow-left" aria-hidden="true"></i> <spring:message code="displayFull.back"/></a>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/displayHistory.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<c:set var="n"><portlet:namespace/></c:set>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-12 no-col-padding">
<div class="nav-links">
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/editDisplayPreferences.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
<portlet:param name="action" value="editDisplayPreferences"/>
</portlet:actionURL>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-6 no-col-padding">
<h4 role="heading"><spring:message code="edit.yoursubs"/></h4>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/error.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
--%>
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-12 no-col-padding">
<h4><spring:message code="error.header"/></h4>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/errorPermission.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
--%>
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-12 no-col-padding">
<h4><spring:message code="errorPermission.unauthorized"/></h4>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/help.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
--%>
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div>
Expand Down Expand Up @@ -158,4 +157,4 @@ For more details visit the AnnouncementsPortlet <a href="https://wiki.jasig.org/
<br/><br/>
<div class="nav-links">
<a style="text-decoration:none;font-size:0.9em;" href="<portlet:renderURL portletMode="view" windowState="normal"/>"><i class="fa fa-arrow-left" aria-hidden="true"> </i><spring:message code="general.adminhome"/></a>
</div>
</div>
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/previewAnnouncement.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<c:set var="n"><portlet:namespace/></c:set>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<c:if test="${portletPreferencesValues['includeJQuery'][0] != 'false'}">
<script type="text/javascript" src="<rs:resourceURL value="/rs/jquery/1.11.0/jquery-1.11.0.min.js"/>"></script>
</c:if>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-6 no-col-padding">
<h4 role="heading"><spring:message code="preview.header"/></h4>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/showHistory.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<c:set var="n"><portlet:namespace/></c:set>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<div id="${n}">

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-6 no-col-padding">
<h4 class="title" role="heading"><spring:message code="showHistory.history"/></h4>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/WEB-INF/jsp/showTopic.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<c:set var="n"><portlet:namespace/></c:set>

<link rel="stylesheet" href="<rs:resourceURL value='/rs/bootstrap-namespaced/3.1.1/css/bootstrap.min.css'/>" type="text/css"/>
<link href="<c:url value='/css/announcements.css'/>" rel="stylesheet" type="text/css"/>

<c:if test="${portletPreferencesValues['includeJQuery'][0] != 'false'}">
Expand Down Expand Up @@ -80,7 +79,7 @@
}
</script>

<div class="container-fluid bootstrap-styles announcements-container">
<div class="container-fluid announcements-container">
<div class="row announcements-portlet-toolbar">
<div class="col-md-6 no-col-padding">
<h4 class="title" role="heading"><spring:message code="show.annfor"/> <c:out value="${topic.title}"/></h4>
Expand Down

0 comments on commit 3853608

Please sign in to comment.