github.com/ngocphuongnb/tetua@v0.0.7-alpha/app/themes/default/views/pages/profile.jade (about)

     1  extends ../partials/layout.jade
     2  include ../partials/common.jade
     3  
     4  block content
     5    :go:func Profile(user *entities.User, paginate *entities.Paginate[entities.Post], comments []*entities.Comment)
     6    .container
     7      .box.page-desc.profile
     8        !=user.AvatarElm('100', '100', false)
     9        h1(style='text-align:center')=user.Name()
    10        .user-attrs.flex
    11          span
    12            svg(viewBox='0 0 24 24')
    13              path(fill='currentColor' d='M12,15C12.81,15 13.5,14.7 14.11,14.11C14.7,13.5 15,12.81 15,12C15,11.19 14.7,10.5 14.11,9.89C13.5,9.3 12.81,9 12,9C11.19,9 10.5,9.3 9.89,9.89C9.3,10.5 9,11.19 9,12C9,12.81 9.3,13.5 9.89,14.11C10.5,14.7 11.19,15 12,15M12,2C14.75,2 17.1,3 19.05,4.95C21,6.9 22,9.25 22,12V13.45C22,14.45 21.65,15.3 21,16C20.3,16.67 19.5,17 18.5,17C17.3,17 16.31,16.5 15.56,15.5C14.56,16.5 13.38,17 12,17C10.63,17 9.45,16.5 8.46,15.54C7.5,14.55 7,13.38 7,12C7,10.63 7.5,9.45 8.46,8.46C9.45,7.5 10.63,7 12,7C13.38,7 14.55,7.5 15.54,8.46C16.5,9.45 17,10.63 17,12V13.45C17,13.86 17.16,14.22 17.46,14.53C17.76,14.84 18.11,15 18.5,15C18.92,15 19.27,14.84 19.57,14.53C19.87,14.22 20,13.86 20,13.45V12C20,9.81 19.23,7.93 17.65,6.35C16.07,4.77 14.19,4 12,4C9.81,4 7.93,4.77 6.35,6.35C4.77,7.93 4,9.81 4,12C4,14.19 4.77,16.07 6.35,17.65C7.93,19.23 9.81,20 12,20H17V22H12C9.25,22 6.9,21 4.95,19.05C3,17.1 2,14.75 2,12C2,9.25 3,6.9 4.95,4.95C6.9,3 9.25,2 12,2Z')
    14            =user.Username
    15          span
    16            svg(viewBox='0 0 24 24')
    17              path(fill='currentColor' d='M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z')
    18            ="Joined on " + user.CreatedAt.Format("Jan 2, 2006")
    19          if user.Email != ""
    20            span
    21              svg(viewBox='0 0 24 24')
    22                path(fill='currentColor' d='M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z')
    23              =user.Email
    24          if user.URL != ""
    25            span
    26              svg(viewBox='0 0 24 24')
    27                path(fill='currentColor' d='M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z')
    28              =user.URL
    29        .bio
    30          !=user.BioHTML
    31      .layout
    32        .left
    33        main.main
    34          +Messages(meta.Messages)
    35          h2(style='margin-top:0') Recent comments
    36          .comments
    37            each comment in comments
    38              +commentView(comment, comment.Post.ID, false, false)
    39          h2 Recent posts
    40          .article-list
    41            each post in paginate.Data
    42              +postCard(post)
    43          - var links = paginate.Links()
    44          ul.paginate
    45            each link in links
    46              li
    47                a(href=link.Link class=link.Class)=link.Label
    48