mirror of
https://github.com/bodyrep/bodyrep-sandpit.git
synced 2026-01-30 08:41:39 +00:00
Controllers
Authentication was moved from the member controller the new AuthController. User entity created strictly for session management Symfony config Service and parameter configuration has been switched to YAML and consolidated into app/config/config.yml Removed Twig extension from the service container (services.xml) Presentation LABJS test added Some sample js added to test inline js vs callbacks vs Twig/Angular/etc Tests New units tests for Landing, Profile, Auth and Member controllers
This commit is contained in:
12
src/BodyRep/Resources/views/Profile/comment.html.twig
Normal file
12
src/BodyRep/Resources/views/Profile/comment.html.twig
Normal file
@@ -0,0 +1,12 @@
|
||||
{% for comment in comments %}
|
||||
<div class="user-sub-comment">
|
||||
<div class='sub-avatar user1'></div>
|
||||
<a>{{ comment.author }}</a>
|
||||
<p>{{ comment.text }} </p>
|
||||
<div class="like-comment-time">
|
||||
{{ comment.thumbs }}
|
||||
<i class="icon-comment"></i>
|
||||
<span>{{ comment.dateHuman }} </span>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -1,11 +1,18 @@
|
||||
{% extends 'BodyRep::layout.html.twig' %}
|
||||
|
||||
{% block title %}BodyRep{% endblock %}
|
||||
{% block documentReady %}
|
||||
$('#rep').live('click', function() {
|
||||
$.get('{{ path("_profile_reputation", { 'username': app.request.get('username') }) }}', {}, function (data) {
|
||||
$('#mcnt').html(data);
|
||||
});
|
||||
});
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header '' %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'BodyRep:Member:navbar.html.twig' %}
|
||||
{% include 'BodyRep:Auth:navbar.html.twig' %}
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
@@ -13,7 +20,7 @@
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">Profile</li>
|
||||
<li class="active"><a href="#">Body Stats</a></li>
|
||||
<li><a href="#">Body Reputation</a></li>
|
||||
<li><a href="#" id='rep'>Body Reputation</a></li>
|
||||
<li><a href="#">Challenges</a></li>
|
||||
<li class="nav-header">Workouts</li>
|
||||
<li class="nav-header">Meals</li>
|
||||
|
||||
10
src/BodyRep/Resources/views/Profile/reputation.html.twig
Normal file
10
src/BodyRep/Resources/views/Profile/reputation.html.twig
Normal file
@@ -0,0 +1,10 @@
|
||||
{% block js %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header '' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row-fluid">
|
||||
Reputation page
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user