예제 #1
0
 public function showAction()
 {
     $id = mysql_real_escape_string($this->request->getParam("id"));
     $project = load_project($id);
     $new_faq = new Faq();
     $new_faq->project_id = $id;
     $faqs = $project->getQuestions();
     if ($project && !$project->published) {
         $this->flash->setError("This project has not been published yet!");
         $this->redirect_to(project_list_path());
     } else {
         if (!$project) {
             $this->flash->setError("Project not found!");
             $this->redirect_to(project_list_path());
         } else {
             //$issue = random_issue($id);
             $issues = list_issue("num desc", 5, "project_id = " . $id);
             $this->render(array("faqs_list" => $faqs, "faq" => $new_faq, "issues" => $issues, "project" => $project));
         }
     }
 }
예제 #2
0
파일: show.html.php 프로젝트: quyen91/lfpr
echo $this->project->name;
?>
</small>
		<?php 
echo link_to(project_list_path(), "&lt;&lt; Back to list", array("class" => "btn btn-large pull-right"));
?>
		</h1>
	</div>

	<ul class="breadcrumb">
	  <li><a href="<?php 
echo home_root_path_path();
?>
">Home</a> <span class="divider">/</span></li>
	  <li ><a href="<?php 
echo project_list_path();
?>
">List of projects</a> <span class="divider">/</span></li>
	  <li class="active">Stats for project</li>
	</ul>
	<h2 class="pull-left">Current data</h2>
	<h3 class="pull-right" >
		by
		<?php 
echo link_to(developer_show_path($this->project->owner()), $this->project->owner()->name, array("class" => "dev-link", "data-title" => "See all projects by this user"));
?>
		<?php 
echo image_tag($this->project->owner()->avatar(), array("class" => "avatar"));
?>
 
	</h3>
예제 #3
0
파일: index.html.php 프로젝트: quyen91/lfpr
">
        <a href="<?php 
        echo project_list_path(array("p" => $i, "language" => $this->search_crit['lang'], "owner" => $this->search_crit['owner'], "sort" => $this->search_crit['sort']));
        ?>
">
          <?php 
        echo $i + 1;
        ?>
        </a>
      </li>
    <?php 
    }
    ?>
    <?php 
    if ($page < $total_pages - 1) {
        ?>
    <li class="next">
      <a href="<?php 
        echo project_list_path(array("p" => $page + 1, "language" => $this->search_crit['lang'], "owner" => $this->search_crit['owner'], "sort" => $this->search_crit['sort']));
        ?>
">
        <img src="/img/pager/next.png">
      </a>
    </li>
    <?php 
    }
    ?>
  </ul>
</div>
<?php 
}
예제 #4
0
파일: index.html.php 프로젝트: quyen91/lfpr
    <?php 
    echo link_to(GithubAPI::login_url(), '<i class="icon-github" style="font-size:30px;" ></i> Github', array("class" => "has-tooltip btn btn-large btn-success", "data-title" => "Sign-in using Github"));
    ?>
  </p>
  <?php 
}
?>
<h3><img src="/img/LFPR-logo.png" /> </h3>
<h1> Looking for Pull Requests!</h1>
<p>
  Use the site to find a project to contribute to, <em>OR</em> publish your projects and let the 
  world know you're looking for contributors
</p>
  <p class="pull-left">
  <?php 
echo link_to(project_list_path(), "Find projects", array("class" => "btn btn-primary btn-large", "id" => "main-btn"));
?>

  <a class="palette palette-wet-asphalt promo-link" href="<?php 
echo home_contest_path();
?>
">
    Win a cool T-Shirt and more! <br/>
    Click here for more information...
    <img src="/img/premios-iconos.png" alt="Awesome stuff!">
  </a>
  </p>

  <div class="well span4 pull-right">
    <p>Subscribe to get weekly updates on the site and new repos published.</p>
    <?php