<commit_before>{% extends 'MVNerdsSiteBundle::layout.html.twig' %}

{% block title %}{{ item_build.getName() }} - Pimp My Recommended Items | MVNerds{% endblock %}

{% block css %}
	{{ parent() }}

	{% if app.environment == 'dev' %}
		<link rel="stylesheet" type="text/css" href="{{ asset('medias/css/pmri/list-detail.css') }}">
		<link rel="stylesheet" type="text/css" href="{{ asset('medias/css/jquery.mCustomScrollbar.css') }}">
		<link rel="stylesheet" type="text/css" href="{{ asset('medias/css/mvnerds/mvnerds-modal.css') }}">
	{% else %}
		{% stylesheets 
			'medias/css/pmri/list-detail.css'
			'medias/css/jquery.mCustomScrollbar.css'
			'medias/css/mvnerds/mvnerds-modal.css'
			output='medias/css/compiled/pmri-list-detail.css'
			filter='yui_css'
			filter='cssembed'
		%}
		<link rel="stylesheet" href="{{ asset_url }}" />
		{% endstylesheets %}
	{% endif %}
{% endblock %}

{% block javascripts %}
	{{ parent() }}

	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
	{% if app.environment == 'dev' %}
		<script type="text/javascript" src="{{ asset('medias/js/bootstrap/bootstrap-modal.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/bootstrap/bootstrap-tooltip.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/bootstrap/bootstrap-popover.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/jquery.mousewheel.min.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/jquery.mCustomScrollbar.concat.min.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/site/alerts-ajax-handler.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/item-handler/item-modal.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/item-handler/item-popover.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/item-handler/dl-modal.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/pmri/detail-page.js') }}"></script>
	{% else %}
		{% javascripts
			'medias/js/bootstrap/bootstrap-modal.js'
			'medias/js/bootstrap/bootstrap-tooltip.js'
			'medias/js/bootstrap/bootstrap-popover.js'
			'medias/js/jquery.mousewheel.min.js'
			'medias/js/jquery.mCustomScrollbar.concat.min.js'
			'medias/js/site/alerts-ajax-handler.js'
			'medias/js/item-handler/item-modal.js'
			'medias/js/item-handler/item-popover.js'
			'medias/js/item-handler/dl-modal.js'
			'medias/js/pmri/detail-page.js'
			output='medias/js/compiled/pmri-list-detail.js'
			filter='yui_js'
		%}
		<script src="{{ asset_url }}"></script>
		{% endjavascripts %}
	{% endif %}
{% endblock %}

{% block topbar %}
	{% set module = 'pmri' %}
		
	{{ parent() }}
{% endblock %}
		
{% block breadcrumbs %}
	{{ parent() }}
	
	> <a href="{{ path('pmri_list') }}">Pimp My Recommended Items</a> > <a href="{{ path('pmri_list_detail', {'slug':item_build.getSlug()}) }}">{{ item_build.getName() }}</a>
{% endblock %}

{% block main_content %}
	<div class="container main-container border-top">
		<div class="row-fluid">
			<div class="span8 left-content">
				<h1>{{ 'pmri_detail.title.list'|trans }} "{{ item_build.getName() }}"</h1>
				
				{# PUBLICITÉ #}
				{% include 'MVNerdsSiteBundle:Common:ad_468x60.html.twig' %}
				
				<div class="map-container">
					<h2>{{ 'pmri_detail.desc_and_map_title'|trans }}</h2>
					<p>
						<div class="game-mode {{ item_build.getGameMode().getLabel() }}" data-game-mode="{{ item_build.getGameMode().getLabel() }}">
							<span class="message">{{ item_build.getGameMode().getLabel()|trans }}</span>
						</div>
						{% if item_build.getDescription() == '' %}
							<i>{{ item_build.getUser().getUsername() }} {{ 'pmri_detail.no_description'|trans }}</i>
						{% else %}
							{{ item_build.getDescription()|nl2br }}
						{% endif %}
					</p>
					<div class="clearfix"></div>
				</div>
				
				{% include 'MVNerdsItemHandlerBundle:PMRI:pmri_detail_champion_list.html.twig' %}
				
				{% include 'MVNerdsItemHandlerBundle:PMRI:pmri_detail_item_block_list.html.twig' %}
				
				{{ render(controller('MVNerdsCommentBundle:Comment:renderComments', {'object': item_build, 'objectType': 'item_build'})) }}
			</div>
			
			<div class="span4 right-content">
				{# Bouton de téléchargement #}
				<div class="block">
					<div class="footer red">
						<a href="#" class="download-action{% if start_dl is defined and start_dl %} start-dl{% endif %}" data-name="{{item_build.getName()}}" data-slug="{{item_build.getSlug()}}">{{'item_build_view_index.download.btn'|trans}}</a>
					</div>
				</div>
				
				{# Bouton de copie #}
				<div class="block">
					<div class="footer blue">
						<a href="#" class="copy-action" data-name="{{item_build.getName()}}" data-slug="{{item_build.getSlug()}}">{{'item_build_view_index.copy.btn'|trans}}</a>
					</div>
				</div>
					
				{% if can_edit %}
					{# Bouton d'édition #}
					<div class="block">
						<div class="footer blue">
							<a href="{{ path('pmri_edit', {itemBuildSlug: item_build.getSlug()}) }}">{{ 'item_table.admin.edit'|trans }}</a>
						</div>
					</div>
				{% endif %}
					
				<div class="block">
					<div class="header">
						<h3>{{ 'generic_detail_page.about.title'|trans }}</h3>
					</div>
					<div class="body">
						<div class="block-media">
							<img src="{{ asset('medias/images/avatar/' ~ item_build.getUser().getUserAvatarName()~ '.jpg') }}" />
							{{ render(controller('MVNerdsVoteBundle:Vote:renderVoteBlock', {'object': item_build, 'objectType': 'item_build'})) }}
						</div>
						
						<div class="game-account-infos">
							{% set game_account = item_build.getUser().getProfile().getGameAccount() %}
							{% if game_account != null %}
								<div class="summoner-name">{{ 'profile_list.summoner_name_label'|trans }} <strong>{{ game_account.getSummonerName() }}</strong></div>
								<div class="row-fluid">
									<div class="span4 league">
										{% if game_account.getRankedTeam3x3League() != null %}
											<img src="{{ asset('medias/images/league-medals/' ~ game_account.getRankedTeam3x3League() ~ '.png') }}" />
										{% else %}
											<img src="{{ asset('medias/images/league-medals/unranked.png') }}" />
										{% endif %}
										<div class="label">{{ 'profile_index.game_account.team3x3_queue_label'| trans }}</div>
									</div>

									<div class="span4 league">
										{% if game_account.getRankedSolo5x5League() != null %}
											<img src="{{ asset('medias/images/league-medals/' ~ game_account.getRankedSolo5x5League() ~ '.png') }}" />
										{% else %}
											<img src="{{ asset('medias/images/league-medals/unranked.png') }}" />
										{% endif %}
										<div class="label">{{ 'profile_index.game_account.solo_queue_label'|trans }}</div>
									</div>

									<div class="span4 league">
										{% if game_account.getRankedTeam5x5League() != null %}
											<img src="{{ asset('medias/images/league-medals/' ~ game_account.getRankedTeam5x5League() ~ '.png') }}" />
										{% else %}
											<img src="{{ asset('medias/images/league-medals/unranked.png') }}" />
										{% endif %}
										<div class="label">{{ 'profile_index.game_account.team5x5_queue_label'|trans }}</div>
									</div>
								</div>
							{% else %}
								{% if app.user != null and app.user.getId() == item_build.getUser().getId() %}
									<i>{{ 'pmri_detail.about.game_account_block.no_link.admin'|trans }} <a href="{{ path('summoner_profile_index') }}">{{ 'pmri_detail.about.game_account_block.want_to_link.admin'|trans }}</a></i>
								{% else %}
									<i>{{ item_build.getUser().getUsername() }} {{ 'pmri_detail.about.game_account_block.no_link'|trans }}</i>
								{% endif %}
							{% endif %}
						</div>
						
						<div class="stats">
							<i class="icon-user"></i> 
							<strong><a href="{{ path('summoner_profile_view', {'slug': item_build.getUser().getSlug()}) }}" title="Consulter le profil de {{ item_build.getUser().getUsername }}" class="resize-required">{{item_build.getUser().getUserName()}}</a></strong><br /> {{ 'generic_detail_page.about.author'|trans }}
						</div>
						
						<div class="stats odd">
							<i class="icon-time"></i> 
							<strong>{{ item_build.getUpdateTime('d/m/Y') }}</strong><br /> {{ 'pmri_detail.about.last_update'|trans }}
						</div><commit_msg>Fix images medals sur le detail du PMRI<commit_after>{% extends 'MVNerdsSiteBundle::layout.html.twig' %}

{% block title %}{{ item_build.getName() }} - Pimp My Recommended Items | MVNerds{% endblock %}

{% block css %}
	{{ parent() }}

	{% if app.environment == 'dev' %}
		<link rel="stylesheet" type="text/css" href="{{ asset('medias/css/pmri/list-detail.css') }}">
		<link rel="stylesheet" type="text/css" href="{{ asset('medias/css/jquery.mCustomScrollbar.css') }}">
		<link rel="stylesheet" type="text/css" href="{{ asset('medias/css/mvnerds/mvnerds-modal.css') }}">
	{% else %}
		{% stylesheets 
			'medias/css/pmri/list-detail.css'
			'medias/css/jquery.mCustomScrollbar.css'
			'medias/css/mvnerds/mvnerds-modal.css'
			output='medias/css/compiled/pmri-list-detail.css'
			filter='yui_css'
			filter='cssembed'
		%}
		<link rel="stylesheet" href="{{ asset_url }}" />
		{% endstylesheets %}
	{% endif %}
{% endblock %}

{% block javascripts %}
	{{ parent() }}

	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
	{% if app.environment == 'dev' %}
		<script type="text/javascript" src="{{ asset('medias/js/bootstrap/bootstrap-modal.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/bootstrap/bootstrap-tooltip.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/bootstrap/bootstrap-popover.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/jquery.mousewheel.min.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/jquery.mCustomScrollbar.concat.min.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/site/alerts-ajax-handler.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/item-handler/item-modal.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/item-handler/item-popover.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/item-handler/dl-modal.js') }}"></script>
		<script type="text/javascript" src="{{ asset('medias/js/pmri/detail-page.js') }}"></script>
	{% else %}
		{% javascripts
			'medias/js/bootstrap/bootstrap-modal.js'
			'medias/js/bootstrap/bootstrap-tooltip.js'
			'medias/js/bootstrap/bootstrap-popover.js'
			'medias/js/jquery.mousewheel.min.js'
			'medias/js/jquery.mCustomScrollbar.concat.min.js'
			'medias/js/site/alerts-ajax-handler.js'
			'medias/js/item-handler/item-modal.js'
			'medias/js/item-handler/item-popover.js'
			'medias/js/item-handler/dl-modal.js'
			'medias/js/pmri/detail-page.js'
			output='medias/js/compiled/pmri-list-detail.js'
			filter='yui_js'
		%}
		<script src="{{ asset_url }}"></script>
		{% endjavascripts %}
	{% endif %}
{% endblock %}

{% block topbar %}
	{% set module = 'pmri' %}
		
	{{ parent() }}
{% endblock %}
		
{% block breadcrumbs %}
	{{ parent() }}
	
	> <a href="{{ path('pmri_list') }}">Pimp My Recommended Items</a> > <a href="{{ path('pmri_list_detail', {'slug':item_build.getSlug()}) }}">{{ item_build.getName() }}</a>
{% endblock %}

{% block main_content %}
	<div class="container main-container border-top">
		<div class="row-fluid">
			<div class="span8 left-content">
				<h1>{{ 'pmri_detail.title.list'|trans }} "{{ item_build.getName() }}"</h1>
				
				{# PUBLICITÉ #}
				{% include 'MVNerdsSiteBundle:Common:ad_468x60.html.twig' %}
				
				<div class="map-container">
					<h2>{{ 'pmri_detail.desc_and_map_title'|trans }}</h2>
					<p>
						<div class="game-mode {{ item_build.getGameMode().getLabel() }}" data-game-mode="{{ item_build.getGameMode().getLabel() }}">
							<span class="message">{{ item_build.getGameMode().getLabel()|trans }}</span>
						</div>
						{% if item_build.getDescription() == '' %}
							<i>{{ item_build.getUser().getUsername() }} {{ 'pmri_detail.no_description'|trans }}</i>
						{% else %}
							{{ item_build.getDescription()|nl2br }}
						{% endif %}
					</p>
					<div class="clearfix"></div>
				</div>
				
				{% include 'MVNerdsItemHandlerBundle:PMRI:pmri_detail_champion_list.html.twig' %}
				
				{% include 'MVNerdsItemHandlerBundle:PMRI:pmri_detail_item_block_list.html.twig' %}
				
				{{ render(controller('MVNerdsCommentBundle:Comment:renderComments', {'object': item_build, 'objectType': 'item_build'})) }}
			</div>
			
			<div class="span4 right-content">
				{# Bouton de téléchargement #}
				<div class="block">
					<div class="footer red">
						<a href="#" class="download-action{% if start_dl is defined and start_dl %} start-dl{% endif %}" data-name="{{item_build.getName()}}" data-slug="{{item_build.getSlug()}}">{{'item_build_view_index.download.btn'|trans}}</a>
					</div>
				</div>
				
				{# Bouton de copie #}
				<div class="block">
					<div class="footer blue">
						<a href="#" class="copy-action" data-name="{{item_build.getName()}}" data-slug="{{item_build.getSlug()}}">{{'item_build_view_index.copy.btn'|trans}}</a>
					</div>
				</div>
					
				{% if can_edit %}
					{# Bouton d'édition #}
					<div class="block">
						<div class="footer blue">
							<a href="{{ path('pmri_edit', {itemBuildSlug: item_build.getSlug()}) }}">{{ 'item_table.admin.edit'|trans }}</a>
						</div>
					</div>
				{% endif %}
					
				<div class="block">
					<div class="header">
						<h3>{{ 'generic_detail_page.about.title'|trans }}</h3>
					</div>
					<div class="body">
						<div class="block-media">
							<img src="{{ asset('medias/images/avatar/' ~ item_build.getUser().getUserAvatarName()~ '.jpg') }}" />
							{{ render(controller('MVNerdsVoteBundle:Vote:renderVoteBlock', {'object': item_build, 'objectType': 'item_build'})) }}
						</div>
						
						<div class="game-account-infos">
							{% set game_account = item_build.getUser().getProfile().getGameAccount() %}
							{% if game_account != null %}
								<div class="summoner-name">{{ 'profile_list.summoner_name_label'|trans }} <strong>{{ game_account.getSummonerName() }}</strong></div>
								<div class="row-fluid">
									<div class="span4 league">
										{% if game_account.getRankedTeam3x3League() != null %}
											<img src="{{ asset('medias/images/league-medals/' ~ (game_account.getRankedTeam3x3League() | lower) ~ '.png') }}" />
										{% else %}
											<img src="{{ asset('medias/images/league-medals/unranked.png') }}" />
										{% endif %}
										<div class="label">{{ 'profile_index.game_account.team3x3_queue_label'| trans }}</div>
									</div>

									<div class="span4 league">
										{% if game_account.getRankedSolo5x5League() != null %}
											<img src="{{ asset('medias/images/league-medals/' ~ (game_account.getRankedSolo5x5League() | lower) ~ '.png') }}" />
										{% else %}
											<img src="{{ asset('medias/images/league-medals/unranked.png') }}" />
										{% endif %}
										<div class="label">{{ 'profile_index.game_account.solo_queue_label'|trans }}</div>
									</div>

									<div class="span4 league">
										{% if game_account.getRankedTeam5x5League() != null %}
											<img src="{{ asset('medias/images/league-medals/' ~ (game_account.getRankedTeam5x5League() | lower) ~ '.png') }}" />
										{% else %}
											<img src="{{ asset('medias/images/league-medals/unranked.png') }}" />
										{% endif %}
										<div class="label">{{ 'profile_index.game_account.team5x5_queue_label'|trans }}</div>
									</div>
								</div>
							{% else %}
								{% if app.user != null and app.user.getId() == item_build.getUser().getId() %}
									<i>{{ 'pmri_detail.about.game_account_block.no_link.admin'|trans }} <a href="{{ path('summoner_profile_index') }}">{{ 'pmri_detail.about.game_account_block.want_to_link.admin'|trans }}</a></i>
								{% else %}
									<i>{{ item_build.getUser().getUsername() }} {{ 'pmri_detail.about.game_account_block.no_link'|trans }}</i>
								{% endif %}
							{% endif %}
						</div>
						
						<div class="stats">
							<i class="icon-user"></i> 
							<strong><a href="{{ path('summoner_profile_view', {'slug': item_build.getUser().getSlug()}) }}" title="Consulter le profil de {{ item_build.getUser().getUsername }}" class="resize-required">{{item_build.getUser().getUserName()}}</a></strong><br /> {{ 'generic_detail_page.about.author'|trans }}
						</div>
						
						<div class="stats odd">
							<i class="icon-time"></i> 
							<strong>{{ item_build.getUpdateTime('d/m/Y') }}</strong><br /> {{ 'pmri_detail.about.last_update'|trans }}
						</div>
{'fraction_non_alphanumeric': 0.21291809478785015, 'fraction_numerical': 0.0041366268762557615, 'mean_word_length': 3.554090419806243, 'pattern_counts': {'":': 0, '<': 259, '<?xml version=': 0, '>': 263, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3111348', 'n_tokens_mistral': 7469, 'n_tokens_neox': 5823, 'n_words': 851}