Skip to content

Commit

Permalink
Howto added in homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
giorrrgio committed Jun 1, 2013
1 parent f8273b9 commit daf9dd5
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
43 changes: 42 additions & 1 deletion src/PUGX/BadgeBundle/Resources/views/Page/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,50 @@
<p class="lead">Pimp your README!</p>
<p class="lead">
<a target="_blank" href="http:https://travis-ci.org/PUGX/badge-poser"><img src="https://secure.travis-ci.org/PUGX/badge-poser.png" /></a>
<a target="_blank" href="https://packagist.org/packages/pugx/badge-poser"><img src="http:https://poser.pagodabox.com/pugx/badge-poser/d/total.png" /></a>
</p>
</div>

<div class="row-fluid bundles">
<div class="span12">
<article>
<h3>Be a poser</h3>
<p>
Use shields for you packagist.org repository, that shows how many times your project has been downloaded from Packagist.org or its latest stable version.
</p>
<h3>How to use Badge Poser</h3>
<p>put the following snippets in your README:</p>
<p>
Total downloads <img src="https://poser.pugx.org/symfony/symfony/d/total.png">
<pre class="prettyprint">[![Total Downloads](https://poser.pugx.org/symfony/symfony/d/total.png)](https://packagist.org/packages/symfony/symfony)</pre>
</p>
<p>
Monthly downloads <img src="https://poser.pugx.org/symfony/symfony/d/monthly.png">
<pre class="prettyprint">Monthly downloads [![Downloads](http:https://poser.pugx.org/symfony/symfony/d/monthly.png)](https://packagist.org/packages/symfony/symfony)</pre>
</p>
<p>
Daily downloads <img src="https://poser.pugx.org/symfony/symfony/d/daily.png">
<pre class="prettyprint">Daily downloads [![Downloads](http:https://poser.pugx.org/symfony/symfony/d/daily.png)](https://packagist.org/packages/symfony/symfony)</pre>
</p>
<p>
Latest Stable Version <img src="https://poser.pugx.org/symfony/symfony/version.png">
<pre class="prettyprint">[![Latest Stable Version](https://poser.pugx.org/symfony/symfony/version.png)](https://packagist.org/packages/symfony/symfony)</pre>
</p>
<p>
Latest Unstable Version <img src="https://poser.pugx.org/symfony/symfony/v/unstable.png">
<pre class="prettyprint">[![Latest Unstable Version](https://poser.pugx.org/symfony/symfony/v/unstable.png)](https://packagist.org/packages/symfony/symfony)</pre>
</p>

</article>
</div>
</div>

<hr>

<div class="footer">
</div>

</div>

<div class="footer">
</div>

Expand Down
5 changes: 5 additions & 0 deletions src/PUGX/BadgeBundle/Tests/Controller/PageControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ public function testHomeAction()
$this->assertTrue($client->getResponse()->isSuccessful());
$this->assertEquals(1, $crawler->filter('#container h1:contains("Badge Poser")')->count());
$this->assertEquals(1, $crawler->filter('#container p:contains("Pimp your README!")')->count());
$this->assertEquals(1, $crawler->filter('#container p:contains("Total downloads")')->count());
$this->assertEquals(1, $crawler->filter('#container p:contains("Daily downloads")')->count());
$this->assertEquals(1, $crawler->filter('#container p:contains("Monthly downloads")')->count());
$this->assertEquals(1, $crawler->filter('#container p:contains("Latest Stable Version")')->count());
$this->assertEquals(1, $crawler->filter('#container p:contains("Latest Unstable Version")')->count());
}
}
5 changes: 5 additions & 0 deletions web/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ body {
.jumbotron h1 {
font-size: 64px;
line-height: 1;
}
pre {
overflow: auto;
word-wrap: normal;
white-space: pre;
}

0 comments on commit daf9dd5

Please sign in to comment.