Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Enhancement: Reponsiveness of contributors grid #457

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions module/Application/view/application/contributors/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@
<h1>Contributors Hall of Fame</h1>

<div class="row">
<div class="col-md-12">
<div class="col-lg-12">
<p>
We have <strong><?php echo $this->escapeHtml($this->metadata->forks_count); ?> forks</strong>,
<strong><?php echo $this->escapeHtml($this->metadata->stargazers_count); ?> stargazers</strong>,
<strong><?php echo $this->escapeHtml($this->metadata->watchers_count); ?> watchers</strong> and
<strong>awesome contributors</strong> who make this site better.
<a href="<?php echo $this->escapeHtmlAttr($this->gitHubRepositoryUrl()); ?>" target="_blank">Join us!</a>
</p>
<?php foreach ($this->contributors as $contributor): ?>
<?php $url = $contributor['author']['html_url']; ?>
<a href="<?php echo $this->escapeHtmlAttr($url); ?>" class="thumbnail col-md-1" target="_blank">
<?php $src = $contributor['author']['avatar_url']; ?>
<?php $alt = $contributor['author']['login']; ?>
<?php $title = sprintf('%s with %d contributions', $alt, $contributor['total']); ?>
<img src="<?php echo $this->escapeHtmlAttr($src); ?>" alt="<?php echo $this->escapeHtmlAttr($alt); ?>" title="<?php echo $this->escapeHtmlAttr($title); ?>" width="80px" height="80px">
</a>
<?php endforeach; ?>
</div>
<?php foreach ($this->contributors as $contributor): ?>
<div class="col-lg-1 col-md-2 col-sm-2 col-xs-3">
<?php $url = $contributor['author']['html_url']; ?>
<a href="<?php echo $this->escapeHtmlAttr($url); ?>" class="thumbnail img-responsive" target="_blank">
<?php $src = $contributor['author']['avatar_url']; ?>
<?php $alt = $contributor['author']['login']; ?>
<?php $title = sprintf('%s with %d contributions', $alt, $contributor['total']); ?>
<img src="<?php echo $this->escapeHtmlAttr($src); ?>" alt="<?php echo $this->escapeHtmlAttr($alt); ?>" title="<?php echo $this->escapeHtmlAttr($title); ?>">
</a>
</div>
<?php endforeach; ?>
</div>