Skip to content

Commit 5a1e12b

Browse files
committed
Merge branch 'master' into AccountAdmin
Conflicts: src/conf/persistence.xml
2 parents 7532265 + 0b6895f commit 5a1e12b

File tree

6 files changed

+34
-6
lines changed

6 files changed

+34
-6
lines changed

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
lib/
2-
nbproject/
3-
src/conf/MANIFEST.MF
4-
build.xml
5-
build/
1+
lib/
2+
nbproject/
3+
src/conf/MANIFEST.MF
4+
build.xml
5+
build/
6+
/dist/

dist/CookToShare.war

-11 MB
Binary file not shown.

src/conf/persistence.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<exclude-unlisted-classes>false</exclude-unlisted-classes>
66
<properties>
77
<property name="javax.persistence.jdbc.user" value="root" />
8-
<property name="javax.persistence.jdbc.password" value="" />
98
<property name="javax.persistence.jdbc.password" value="CSD@mysql-1872" />
109
</properties>
1110
</persistence-unit>

web/resources/css/siteStyles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ Style the div component whose unique id is "rightAlignPanelGroup" per reference
185185
#rightAlignPanelGroup {
186186
float: right;
187187
}
188+
189+
/* Style the Google map display */
190+
.map {
191+
margin-left: 10px;
192+
margin-right: 40px;
193+
height:600px;
194+
}
195+
188196
/*
189197
Place the logo image on the left top corner per reference
190198
<h:panelGrid columns="2" columnClasses="leftTopCornerAlign, rightTopCornerAlign">

web/template/headerTemplate.xhtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ Copyright © 2017 Anand Guruswamy. All rights reserved.
8585
</h:link>&nbsp;&nbsp;
8686
</c:if>
8787

88+
<c:if test="#{accountManager.isLoggedIn() == true}">
89+
<!-- Clicking "Sign In" displays the SignIn.xhtml file -->
90+
<h:link outcome="FoodMap" styleClass="arialTen">
91+
<i class="fa fa-map">&nbsp;</i>Food Map
92+
</h:link>&nbsp;&nbsp;
93+
</c:if>
8894
<!-- Clicking "Dishes" displays the index.xhtml file -->
8995
<h:link outcome="/dish/List" styleClass="arialTen">
9096
<i class="fa fa-cutlery">&nbsp;</i>Dishes

web/template/siteTemplate.xhtml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ Copyright © 2017 Osman Balci. All rights reserved.
4747
<script src="resources/js/js-image-slider.js" type="text/javascript"></script>
4848

4949

50+
<!--
51+
===================================================================================
52+
Google Maps JavaScript API requires a developer key. You can obtain your own key at
53+
54+
https://developers.google.com/maps/documentation/javascript/
55+
56+
The key below is Dong Gyu's key.
57+
===================================================================================
58+
-->
59+
<script src="https://maps.google.com/maps/api/js?key=AIzaSyBZMh9aKrCzv50b9IvSFA4puoKs6mjHAxA" type="text/javascript"></script>
60+
61+
<!-- map.js is needed for map operations in JavaScript -->
62+
<h:outputScript library="js" name="map.js"/>
63+
5064
<!--
5165
The icons and the font-awesome.min.css styles provided by http://fontawesome.io/
5266
are linked for use by the entire site.

0 commit comments

Comments
 (0)