<commit_before><?php $this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Profile");
$this->menu=array(
	((UserModule::isAdmin())
		?array('label'=>UserModule::t('Manage Users'), 'url'=>array('/user/admin'))
		:array()),
    array('label'=>UserModule::t('List User'), 'url'=>array('/user'),'icon'=>'list'),
    array('label'=>UserModule::t('Edit'), 'url'=>array('edit'),'icon'=>'pencil'),
    array('label'=>UserModule::t('Change password'), 'url'=>array('changepassword'),'icon'=>'lock'),
    array('label'=>UserModule::t('Logout'), 'url'=>array('/user/logout'),'icon'=>'log-out'),
);
?>
<?php if(Yii::app()->user->hasFlash('profileMessage')): ?>
<div class="success">
	<?php echo Yii::app()->user->getFlash('profileMessage'); ?>
</div>
<?php endif; ?>
<div class="media">
	<div class="profile-image pull-left" style="width:128px;height:128px">
		<?php $this->widget('ext.yii-gravatar.YiiGravatar', array(
		    'email'=>$model->email,
		    'size'=>128,
		    'defaultImage'=>Yii::app()->request->getBaseUrl(true) . '/images/kaimito-512.png',
		    'secure'=>false,
		    'rating'=>'r',
		    'emailHashed'=>false,
		    'htmlOptions'=>array(
		        'alt'=>'Gravatar image',
		        'title'=>'Gravatar image',
		        'class'=>'img-rounded'
		        'style'=>'width:128px;height:128px'
		    )
		)); ?>
	</div>
	<div class="media-heading">
		<h1><?php echo $model->username; ?></h1>
	</div>
	<div class="media-body">
		<table class="dataGrid">
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('username')); ?></th>
			    <td><?php echo CHtml::encode($model->username); ?></td>
			</tr>
			<?php 
				$profileFields=ProfileField::model()->forOwner()->sort()->findAll();
				if ($profileFields) {
					foreach($profileFields as $field) {
						//echo "<pre>"; print_r($profile); die();
					?>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode(UserModule::t($field->title)); ?></th>
		    	<td><?php echo (($field->widgetView($profile))?$field->widgetView($profile):CHtml::encode((($field->range)?Profile::range($field->range,$profile->getAttribute($field->varname)):$profile->getAttribute($field->varname)))); ?></td>
			</tr>
					<?php
					}//$profile->getAttribute($field->varname)
				}
			?>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('email')); ?></th>
		    	<td><?php echo CHtml::encode($model->email); ?></td>
			</tr>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('create_at')); ?></th>
		    	<td><?php echo $model->create_at; ?></td>
			</tr>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('lastvisit_at')); ?></th>
		    	<td><?php echo $model->lastvisit_at; ?></td>
			</tr>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('status')); ?></th>
		    	<td><?php echo CHtml::encode(User::itemAlias("UserStatus",$model->status)); ?></td>
			</tr>
		</table>
	</div>
</div>
<commit_msg>Updated User Module design<commit_after><?php $this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Profile");
$this->menu=array(
	((UserModule::isAdmin())
		?array('label'=>UserModule::t('Manage Users'), 'url'=>array('/user/admin'))
		:array()),
    array('label'=>UserModule::t('List User'), 'url'=>array('/user'),'icon'=>'list'),
    array('label'=>UserModule::t('Edit'), 'url'=>array('edit'),'icon'=>'pencil'),
    array('label'=>UserModule::t('Change password'), 'url'=>array('changepassword'),'icon'=>'lock'),
    array('label'=>UserModule::t('Logout'), 'url'=>array('/user/logout'),'icon'=>'log-out'),
);
?>
<?php if(Yii::app()->user->hasFlash('profileMessage')): ?>
<div class="success">
	<?php echo Yii::app()->user->getFlash('profileMessage'); ?>
</div>
<?php endif; ?>
<div class="media">
	<div class="profile-image pull-left" style="width:128px;height:128px">
		<?php $this->widget('ext.yii-gravatar.YiiGravatar', array(
		    'email'=>$model->email,
		    'size'=>128,
		    'defaultImage'=>Yii::app()->request->getBaseUrl(true) . '/images/kaimito-512.png',
		    'secure'=>false,
		    'rating'=>'r',
		    'emailHashed'=>false,
		    'htmlOptions'=>array(
		        'alt'=>'Gravatar image',
		        'title'=>'Gravatar image',
		        'class'=>'img-rounded',
		        'style'=>'width:128px;height:128px'
		    )
		)); ?>
	</div>
	<div class="media-heading">
		<h1><?php echo $model->username; ?></h1>
	</div>
	<div class="media-body">
		<table class="dataGrid">
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('username')); ?></th>
			    <td><?php echo CHtml::encode($model->username); ?></td>
			</tr>
			<?php 
				$profileFields=ProfileField::model()->forOwner()->sort()->findAll();
				if ($profileFields) {
					foreach($profileFields as $field) {
						//echo "<pre>"; print_r($profile); die();
					?>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode(UserModule::t($field->title)); ?></th>
		    	<td><?php echo (($field->widgetView($profile))?$field->widgetView($profile):CHtml::encode((($field->range)?Profile::range($field->range,$profile->getAttribute($field->varname)):$profile->getAttribute($field->varname)))); ?></td>
			</tr>
					<?php
					}//$profile->getAttribute($field->varname)
				}
			?>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('email')); ?></th>
		    	<td><?php echo CHtml::encode($model->email); ?></td>
			</tr>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('create_at')); ?></th>
		    	<td><?php echo $model->create_at; ?></td>
			</tr>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('lastvisit_at')); ?></th>
		    	<td><?php echo $model->lastvisit_at; ?></td>
			</tr>
			<tr>
				<th class="label label-info"><?php echo CHtml::encode($model->getAttributeLabel('status')); ?></th>
		    	<td><?php echo CHtml::encode(User::itemAlias("UserStatus",$model->status)); ?></td>
			</tr>
		</table>
	</div>
</div>

{'fraction_non_alphanumeric': 0.2619281045751634, 'fraction_numerical': 0.006535947712418301, 'mean_word_length': 4.699255121042831, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 267, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4038362', 'n_tokens_mistral': 2274, 'n_tokens_neox': 2085, 'n_words': 307}