mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
css fix
This commit is contained in:
@@ -73,12 +73,15 @@
|
|||||||
<span class="pull-right"><a href="/users/{user.username}/edit">edit</a></span>
|
<span class="pull-right"><a href="/users/{user.username}/edit">edit</a></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span3" style="text-align: center; margin-bottom:20px;">
|
||||||
<div class="account-picture-block text-center">
|
<div class="account-picture-block text-center">
|
||||||
<img id="user-current-picture" class="user-profile-picture" src="{user.picture}" /><br/>
|
<img id="user-current-picture" class="user-profile-picture" src="{user.picture}" /><br/>
|
||||||
<a id="changePictureBtn" href="#" class="btn btn-primary">change picture</a>
|
<a id="changePictureBtn" href="#" class="btn btn-primary">change picture</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="span9">
|
||||||
<div class="inline-block">
|
<div class="inline-block">
|
||||||
<form class='form-horizontal'>
|
<form class='form-horizontal'>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
@@ -112,7 +115,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="inputBirthday">Birthday</label>
|
<label class="control-label" for="inputBirthday">Birthday</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" id="inputBirthday" placeholder="dd/mm/yyyy" value="{user.birthday}">
|
<input type="text" id="inputBirthday" placeholder="mm/dd/yyyy" value="{user.birthday}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -125,6 +128,8 @@
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- how to pass data to the script ?? -->
|
<!-- how to pass data to the script ?? -->
|
||||||
<div id="user-data-picture" class="hide">{user.picture}</div>
|
<div id="user-data-picture" class="hide">{user.picture}</div>
|
||||||
|
|||||||
@@ -347,7 +347,11 @@ var express = require('express'),
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
data.joindate = utils.relativeTime(data.joindate);
|
data.joindate = utils.relativeTime(data.joindate);
|
||||||
data.age = new Date().getFullYear() - new Date(data.birthday).getFullYear();;
|
data.age = new Date().getFullYear() - new Date(data.birthday).getFullYear();
|
||||||
|
|
||||||
|
console.log(data.birthday);
|
||||||
|
console.log(new Date(data.birthday).getFullYear());
|
||||||
|
|
||||||
data.uid = uid;
|
data.uid = uid;
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
|
|||||||
Reference in New Issue
Block a user