<section class='container'>
    <div>         
    <h2>{{GetCode(Forum.MessageOfCategory)}} : {{Category->Name->Value}} </h2>
    <p>{{Category->Description->Value}}</p>
    
    <div class='full-terc'>
        {{foreach Messages}}
        <div class='block-seco'>
            <div class='message-header'>
                <div class='user-profile'>
                    <div class='imgProfil' style='background-image: url({{element->GetImageUser()}}) '></div>
                </div>
                <div class='message-title'>
                    <a href='{{GetPath(/Forum/Sujet/{{element->Code->Value}})}}'>
                        {{element->Title->Value}}
                    </a>
                </div>
                <div class='message-count'>
                    <span class='count-badge'>{{element->GetNumberReponse()}}</span>
                    <span class='count-label'>{{GetCode(Forum.NbMessage)}}</span>
                </div>
            </div>
            
            <div class='message-content'>
                {{element->Message->Value}}
            </div>
            
            <div class='message-footer'>
                <div class='last-response'>
                    <h4>{{GetCode(Forum.LastReponse)}} : </h4>
                    <div class='response-content'>{{element->GetLastReponse()}}</div>
                </div>
                
                <div class='action-buttons'>
                    <a class='btn btn-primary' href='{{GetPath(/Forum/Sujet/{{element->Code->Value}})}}'>
                        {{GetCode(Forum.AddReponse)}}
                    </a>
                </div>
            </div>
        </div>
        {{/foreach Messages}}
    </div>
         
    <div class='marginTop center'>
        <a href='{{GetPath(/Forum/NewDiscussion/{{Category->Code->Value}})}}' class='btn btn-primary'  >
            {{GetCode(Forum.NewDiscussion)}}
        </a>
    </div>
   
    </div>
</section>