Skip to content

Commit

Permalink
Store bootstrap css in package
Browse files Browse the repository at this point in the history
  • Loading branch information
RiKap committed Sep 2, 2015
1 parent 67ff9ff commit 97751fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/App/Presenters/ChangelogPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@
use Nette\Application\UI\Presenter;
use Nette\Bridges\ApplicationLatte\Template;


/**
* @property \stdClass|Template $template
*/
class ChangelogPresenter extends Presenter
{

/**
* @var ChangelogManager
*/
Expand Down Expand Up @@ -71,6 +69,14 @@ public function actionDefault()
}


public function actionCss()
{
header('Content-Type: text/css', TRUE);
readfile(__DIR__ . '/../assets/bootstrap.min.css');
$this->terminate();
}


/**
* @return AddToChangelogControl
*/
Expand Down
5 changes: 5 additions & 0 deletions src/App/assets/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/App/templates/@layout.latte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Changelog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="{plink css}">
</head>

<body>
Expand Down

0 comments on commit 97751fa

Please sign in to comment.