Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bootstrap for HTML coverage to version 4 #644

Merged
merged 1 commit into from
Oct 14, 2018
Merged

Update bootstrap for HTML coverage to version 4 #644

merged 1 commit into from
Oct 14, 2018

Conversation

rpkamp
Copy link
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
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

@@ -4,23 +4,21 @@
<meta charset="UTF-8">
<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
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.

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
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.

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
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
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