File tree Expand file tree Collapse file tree 4 files changed +36
-9
lines changed Expand file tree Collapse file tree 4 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 3
3
<head >
4
4
<meta charset =" UTF-8" />
5
5
<title >{% block title %}Welcome!{% endblock %}</title >
6
- {% block stylesheets %}{% endblock %}
6
+ {% block stylesheets %}
7
+ <link rel =" stylesheet" href =" //maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
8
+ {% endblock %}
7
9
<link rel =" icon" type =" image/x-icon" href =" {{ asset(' favicon.ico' ) }}" />
8
10
</head >
9
11
<body >
Original file line number Diff line number Diff line change
1
+ {% extends ' base.html.twig' %}
2
+
3
+ {% block body %}
4
+ <div class =" container" >
5
+ <div class =" row" >
6
+ <div class =" col-xs-6 col-xs-offset-3" >
7
+ <div class =" text-center page-header" >
8
+ <div >
9
+ <img src =" https://pbs.twimg.com/media/B6dVMHzCYAASEhm.jpg" />
10
+ </div >
11
+
12
+ <h1 >Carson: The Issue Butler</h1 >
13
+
14
+ <div >
15
+ <a href =" {{ needsReviewUrl }}" class =" btn btn-primary" >Find "Needs Review" issues and pull requests</a >
16
+ </div >
17
+
18
+ </div >
19
+ </div >
20
+ </div >
21
+ </div >
22
+ {% endblock %}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
namespace AppBundle \Controller ;
4
4
5
- use Symfony \Component \HttpFoundation \Response ;
5
+ use AppBundle \GitHub \StatusManager ;
6
+ use Symfony \Bundle \FrameworkBundle \Controller \Controller ;
6
7
use Sensio \Bundle \FrameworkExtraBundle \Configuration \Route ;
7
8
8
- class DefaultController
9
+ class DefaultController extends Controller
9
10
{
10
11
/**
11
12
* @Route("/")
12
13
*/
13
14
public function homepageAction ()
14
15
{
15
- return new Response ('<img src="https://pbs.twimg.com/media/B6dVMHzCYAASEhm.jpg" /> ' );
16
+ return $ this ->render ('default/homepage.html.twig ' , [
17
+ 'needsReviewUrl ' => sprintf (
18
+ 'https://github.com/%s/%s/labels/%s ' ,
19
+ $ this ->container ->getParameter ('repository_username ' ),
20
+ $ this ->container ->getParameter ('repository_name ' ),
21
+ urlencode (StatusManager::getLabelForStatus (StatusManager::STATUS_NEEDS_REVIEW ))
22
+ )
23
+ ]);
16
24
}
17
25
}
You can’t perform that action at this time.
0 commit comments