Skip to content

Update bootstrap for HTML coverage to version 4#644

Merged
sebastianbergmann merged 1 commit intosebastianbergmann:masterfrom
rpkamp:bootstrap4
Oct 14, 2018
Merged

Update bootstrap for HTML coverage to version 4#644
sebastianbergmann merged 1 commit intosebastianbergmann:masterfrom
rpkamp:bootstrap4

Conversation

@rpkamp
Copy link
Copy Markdown
Contributor

@rpkamp rpkamp commented Oct 13, 2018

Example:

screenshot from 2018-10-13 11-16-05

Previous (bootstrap 3) for this same page for reference:

screenshot from 2018-10-13 12-08-01

\copy($this->templatePath . 'css/nv.d3.min.css', $dir . 'nv.d3.min.css');
\copy($this->templatePath . 'css/style.css', $dir . 'style.css');
\copy($this->templatePath . 'css/custom.css', $dir . 'custom.css');
\copy($this->templatePath . 'css/octicons.css', $dir . 'octicons.css');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glyphicons is no longer part of bootstrap, so I opted for octicons from Github instead because:

  1. It's smaller, just some small SVG files instead of large font files
  2. The icons are a bit nicer and most programmers should be familiar with them as GitHub uses them as well

<title>Dashboard for {{full_path}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{path_to_root}}.css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="{{path_to_root}}.css/bootstrap.min.css?v=4.1.3" rel="stylesheet" type="text/css">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ?v= everywhere are used for cache bursting in case people serve this from a web server that's caching (too) aggressively.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather not have ?v=, to be honest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would you like instead? Getting the new HTML with the old CSS / JS is not going to work.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust people to be smart enough to force-reload in case the rendered report looks broken.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay fair enough. I'll remove it.

@sebastianbergmann sebastianbergmann merged commit 20d38b8 into sebastianbergmann:master Oct 14, 2018
@rpkamp rpkamp deleted the bootstrap4 branch October 14, 2018 10:23
@sebastianbergmann
Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants