Skip to content

Commit

Permalink
Merge pull request #35 from Emkas/styles
Browse files Browse the repository at this point in the history
Coverage matrix: change styles in schac and erasmus code
  • Loading branch information
mkurzydlowski authored Jun 1, 2022
2 parents aefd792 + 8e1f2c2 commit 706ae43
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,15 @@ static void generateHtmlTableHeader(StringBuilder sb) {

/* Institution */

row1.append(genRow("Institution", NAME_COLOR_CLASS, 2, 1, "ewpst__cell--institution"));
row1.append(genRow("Institution", NAME_COLOR_CLASS, 2, 1, "ewpst__cell-institution"));

/* SCHAC */

row1.append(genRow("SCHAC", NAME_COLOR_CLASS, 2, 1,
"ewpst__cell-schac ewpst__cell--institution"));
row1.append(genRow("SCHAC", NAME_COLOR_CLASS, 2, 1, "ewpst__cell-schac"));

/* Erasmus code */

row1.append(genRow("Erasmus code", NAME_COLOR_CLASS, 2, 1,
"ewpst__cell-schac ewpst__cell--institution"));
row1.append(genRow("Erasmus code", NAME_COLOR_CLASS, 2, 1, "ewpst__cell-erasmus"));

/* Primary Network APIs */

Expand Down Expand Up @@ -187,7 +185,7 @@ static void generateHtmlTableHeader(StringBuilder sb) {
/* Erasmus code */

cell = new CoverageMatrixCell(NAME_COLOR_CLASS);
cell.addClass("ewpst__cell-schac");
cell.addClass("ewpst__cell-erasmus");
this.cells.add(cell);
Collection<String> erasmusCodes = hei.getOtherIds("erasmus");
Optional<String> erasmusCode = erasmusCodes.stream().findFirst();
Expand Down
14 changes: 11 additions & 3 deletions src/main/resources/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,18 @@ a:hover {
color: #000;
}

.ewpst__cell-institution {
min-width: 200px;
}

.ewpst__cell-schac {
min-width: 200px;
width: 200px;
word-break: break-all;
}

.ewpst__cell-erasmus {
min-width: 10em;
width: 200px;
word-break: break-all;
}
Expand All @@ -355,9 +366,6 @@ a:hover {
padding-left: 5px;
padding-right: 5px;
}
.ewpst__cell.ewpst__cell--institution {
min-width: 200px;
}
.ewpst__row--header .ewpst__cell.ewpst__cell--cc1 {
background: #b6d7a8;
text-align: center;
Expand Down
28 changes: 15 additions & 13 deletions src/main/resources/templates/heiFilter.pebble
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<p>
You can search by HEI name, SCHAC, Erasmus code, PIC.
Please type a pattern and hit "Enter".
Example search patterns:
</p>
<div>
<p>
You can search by HEI name, SCHAC, Erasmus code, PIC.
Please type a pattern and hit "Enter".
Example search patterns:
</p>

<ul>
<li>PL&lt;space&gt; - search for Polish HEIs (by Erasmus code)</li>
<li>Wien - search for HEIs that have "Wien" in their name</li>
</ul>
<ul>
<li>PL&lt;space&gt; - search for Polish HEIs (by Erasmus code)</li>
<li>Wien - search for HEIs that have "Wien" in their name</li>
</ul>

<form>
<label>Search for HEI: <input name="pattern" type="search" value="{{ pattern | default('') }}"
size="30" autofocus/></label>
</form>
<form>
<label>Search for HEI: <input name="pattern" type="search" value="{{ pattern | default('') }}"
size="30" autofocus/></label>
</form>
<div>
2 changes: 1 addition & 1 deletion src/main/resources/templates/heiSearch.pebble
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{{ hei.id }}
</a>
</td>
<td class="ewpst__cell ewpst__cell--cc1 ewpst__cell-schac">
<td class="ewpst__cell ewpst__cell--cc1 ewpst__cell-erasmus">
{% if hei.otherIds('erasmus') is not empty %}
{{ hei.otherIds('erasmus') | first }}
{% endif %}
Expand Down

0 comments on commit 706ae43

Please sign in to comment.