Commit f82929b3 authored by Matija Obreza's avatar Matija Obreza

Step 3: Flags

parent fb62493d
...@@ -1885,6 +1885,10 @@ html[dir="rtl"] #footer #copyright p { ...@@ -1885,6 +1885,10 @@ html[dir="rtl"] #footer #copyright p {
} }
/*** Sandbox Styles ***/ /*** Sandbox Styles ***/
img.flag {
height: 24px;
}
html:not([dir="rtl"] ) img.country-flag { html:not([dir="rtl"] ) img.country-flag {
float: right; float: right;
} }
......
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
<spring:message code="accession.origin" /> <spring:message code="accession.origin" />
</div> </div>
<div class="col-xs-8"> <div class="col-xs-8">
<img src="<c:url value="${cdnFlagsUrl}" />/${accession.origin.toUpperCase()}.png" /> <a <img class="flag" src="<c:url value="${cdnFlagsUrl}" />/${accession.origin.toUpperCase()}.svg" /> <a
href="<c:url value="/geo/${accession.origin}" />" href="<c:url value="/geo/${accession.origin}" />"
> <c:out value="${accession.countryOfOrigin.getName(pageContext.response.locale)}" /> > <c:out value="${accession.countryOfOrigin.getName(pageContext.response.locale)}" />
</a> </a>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<body> <body>
<h1> <h1>
<c:out value="${country.getName(pageContext.response.locale)}" /> <c:out value="${country.getName(pageContext.response.locale)}" />
<img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${country.code3.toUpperCase()}.png" /> <img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${country.code3.toUpperCase()}.svg" />
</h1> </h1>
<c:if test="${not country.current}"> <c:if test="${not country.current}">
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<body> <body>
<h1> <h1>
<c:out value="${country.getName(pageContext.response.locale)}" /> <c:out value="${country.getName(pageContext.response.locale)}" />
<img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${country.code3.toUpperCase()}.png" /> <img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${country.code3.toUpperCase()}.svg" />
</h1> </h1>
<form role="form" class="" action="<c:url value="/geo/${country.code3}/update" />" method="post"> <form role="form" class="" action="<c:url value="/geo/${country.code3}/update" />" method="post">
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<body> <body>
<h1> <h1>
<c:out value="${country.getName(pageContext.response.locale)}" /> <c:out value="${country.getName(pageContext.response.locale)}" />
<img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${country.code3.toUpperCase()}.png" /> <img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${country.code3.toUpperCase()}.svg" />
</h1> </h1>
<div class="main-col-header"> <div class="main-col-header">
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<body typeof="schema:Organization"> <body typeof="schema:Organization">
<h1> <h1>
<img class="country-flag bigger" <img class="country-flag bigger"
src="<c:url value="${cdnFlagsUrl}" />/${faoInstitute.country.code3.toUpperCase()}.png" src="<c:url value="${cdnFlagsUrl}" />/${faoInstitute.country.code3.toUpperCase()}.svg"
/> <span property="schema:Organization#name"><c:out value="${faoInstitute.fullName}" /></span> /> <span property="schema:Organization#name"><c:out value="${faoInstitute.fullName}" /></span>
<c:if test="${faoInstitute.acronym != ''}"> &mdash; ${faoInstitute.acronym}</c:if> <c:if test="${faoInstitute.acronym != ''}"> &mdash; ${faoInstitute.acronym}</c:if>
<small><c:out value="${faoInstitute.code}" /></small> <small><c:out value="${faoInstitute.code}" /></small>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</head> </head>
<body> <body>
<h1> <h1>
<img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${faoInstitute.country.code3.toUpperCase()}.png" /> <img class="country-flag bigger" src="<c:url value="${cdnFlagsUrl}" />/${faoInstitute.country.code3.toUpperCase()}.svg" />
<c:out value="${faoInstitute.fullName}" /> <c:out value="${faoInstitute.fullName}" />
<small><c:out value="${faoInstitute.code}" /></small> <small><c:out value="${faoInstitute.code}" /></small>
</h1> </h1>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment