Check-in [7484ed667c]
Overview
Comment:Updated to use smaller CSS icons
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7484ed667c27d4063f19a4547f5a7d25256816f867cdf57b336e38b7607ef50c
User & Date: rkeene on 2017-10-26 18:14:09.578
Other Links: manifest | tags
Context
2017-10-26
18:14
Updated to compute width based on what has been icon-ized check-in: 9f3f36f9d7 user: rkeene tags: trunk
18:14
Updated to use smaller CSS icons check-in: 7484ed667c user: rkeene tags: trunk
18:09
Updated to support options for omitting redundant or passing tags check-in: 7931b61ae9 user: rkeene tags: trunk
Changes
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

platforms=(x86_64-linux arm-linux arm-android x86_64-macos)

function infoToStatusImageURL() {
	local imageProvidingURL
	local action status platform
	local os
	local url



|







1
2
3
4
5
6
7
8
9
10
#! /usr/bin/env bash

platforms=(x86_64-linux arm-linux arm-android x86_64-macos x86_64-freebsd)

function infoToStatusImageURL() {
	local imageProvidingURL
	local action status platform
	local os
	local url

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
for action in build tests; do
	for status in pass fail; do
		for platform in "${platforms[@]}"; do
			tag="${action}-${status}-${platform}"
cat << _EOF_
.timelineTableCell a[href*="/timeline?r=${tag}&"] {
  background: url("$(infoToStatusImageURL "${action}" "${status}" "${platform}")");
  width: 120px; 
  height: 20px;
  background-size: 120px 20px;
  background-repeat: no-repeat;
  color: rgba(0,0,0,0);
  display: inline-block;
  text-indent: -65536px;
}
_EOF_
		done
	done
done
exit 0








|

|











22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
for action in build tests; do
	for status in pass fail; do
		for platform in "${platforms[@]}"; do
			tag="${action}-${status}-${platform}"
cat << _EOF_
.timelineTableCell a[href*="/timeline?r=${tag}&"] {
  background: url("$(infoToStatusImageURL "${action}" "${status}" "${platform}")");
  width: 56px; 
  height: 20px;
  background-size: 56px 20px;
  background-repeat: no-repeat;
  color: rgba(0,0,0,0);
  display: inline-block;
  text-indent: -65536px;
}
_EOF_
		done
	done
done
exit 0