Je dois supprimer une colonne de liste de sujets dans mon forum

Bonjour !

J’essaie de créer mon propre thème, en me basant sur d’autres thèmes que j’ai consultés sur ce forum. Tout se passe comme je le souhaite, sauf pour un élément que je souhaite supprimer et je ne sais pas comment faire.

Voici ce que j’utilise…

<script type='text/x-handlebars' data-template-name='list/topic-list-item.raw'>

    {{#if showParticipants}}
      {{raw "list/posters-column" posters=topic.participants}}
    {{/if}}
    <td class='author' style="width: 70px;"><a href="{{topic.creator.path}}" data-user-card="{{topic.creator.username}}">{{avatar topic.creator imageSize="60"}}</a></td>
    {{#if bulkSelectEnabled}}
      <td class="bulk-select">
        <input type="checkbox" class="bulk-select">
      </td>
    {{/if}}
    <td class='main-link clearfix' colspan="1">
      <span class='link-top-line'>
        {{~raw-plugin-outlet name="topic-list-before-status"}}
        {{~raw "topic-status" topic=topic}}
        {{~topic-link topic class="raw-link raw-topic-link"}}
        {{~#if topic.featured_link}}
        {{~topic-featured-link topic}}
        {{~/if}}
        {{~raw-plugin-outlet name="topic-list-after-title"}}
        {{~#if showTopicPostBadges}}
        {{~raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl newDotText=newDotText}}
        {{~/if}}
        <div class='creator'>
      {{#if showCategory}}
         {{category-link topic.category}}
       {{/if}}
      {{~#if topic.creator ~}}
      <a href="/users/{{topic.creator.username}}" data-auto-route="true" data-user-card="{{topic.creator.username}}">{{topic.creator.username}}</a> <a href={{topic.url}}></a>
      {{~/if ~}}
       {{raw "list/action-list" topic=topic postNumbers=topic.liked_post_numbers className="likes" icon="heart"}}
       </div>
      </span>
      <div class="link-bottom-line">
        {{#unless hideCategory}}
          {{#unless topic.isPinnedUncategorized}}
            {{category-link topic.category}}
          {{/unless}}
        {{/unless}}
        {{discourse-tags topic mode="list" tagsForUser=tagsForUser}}
        {{raw "list/action-list" topic=topic postNumbers=topic.liked_post_numbers className="likes" icon="heart"}}
      </div>
      {{#if expandPinned}}
        {{raw "list/topic-excerpt" topic=topic}}
      {{/if}}
    </td>

    {{raw "list/posts-count-column" topic=topic}}

    {{#if showLikes}}
      <td class="num likes">
        {{#if hasLikes}}
          <a href='{{topic.summaryUrl}}'>
            {{number topic.like_count}} {{d-icon "heart"}}</td>
      </a>
    {{/if}}
    {{/if}}

    {{#if showOpLikes}}
      <td class="num likes">
        {{#if hasOpLikes}}
          <a href='{{topic.summaryUrl}}'>
            {{number topic.op_like_count}} {{d-icon "heart"}}</td>
      </a>
    {{/if}}
    {{/if}}

    <td class="num views {{topic.viewsHeat}}">{{number topic.views numberKey="views_long"}}</td>

    <td class="activity" title="{{topic.bumpedAtTitle}}">
        <a href="{{topic.lastPostUrl}}">
          {{avatar topic.lastPoster usernamePath="username" imageSize="medium"}}
            <span class='latest-info'>
              <span class='name'>
                {{topic.last_poster_username}}
              </span>
              {{format-date topic.bumpedAt format="medium"}}
            </span>
        </a>
    </td>

    </script>

    <script type='text/x-handlebars' data-template-name='topic-list-header.raw'>
    {{#if showPosters}}
      {{raw "topic-list-header-column" order='posters' forceName='Author' style='width: 70px;' }}
    {{/if}}
    {{#if bulkSelectEnabled}}
      <th class="bulk-select">
        {{#if canBulkSelect}}
          {{raw "flat-button" class="bulk-select" icon="list" title="topics.bulk.toggle"}}
        {{/if}}
      </th>
    {{/if}}
    {{raw "topic-list-header-column" order='default' name=listTitle bulkSelectEnabled=bulkSelectEnabled showBulkToggle=toggleInTitle canBulkSelect=canBulkSelect}}

    {{raw "topic-list-header-column" sortable=sortable number='true' order='posts' name='replies'}}
    {{#if showLikes}}
      {{raw "topic-list-header-column" sortable=sortable number='true' order='likes' name='likes'}}
    {{/if}}
    {{#if showOpLikes}}
      {{raw "topic-list-header-column" sortable=sortable number='true' order='op_likes' name='likes'}}
    {{/if}}
    {{raw "topic-list-header-column" sortable=sortable number='true' order='views' name='views'}}
    {{raw "topic-list-header-column" sortable=sortable number='true' order='activity' name='activity'}}
    </script>

    <script type="text/x-handlebars" data-template-name="components/latest-topic-list-item">
    <div class='topic-poster'>
     {{#user-link user=topic.creator}}
      {{avatar topic.creator imageSize="large"}}
     {{/user-link}}
    </div>
    <div class='main-link'>
     <div class='top-row'>
      {{raw "topic-status" topic=topic}}
      {{topic-link topic}}
      {{#if topic.featured_link}}
       {{topic-featured-link topic}}
      {{/if}}
      {{topic-post-badges newPosts=topic.totalUnread unseen=topic.unseen url=topic.lastUnreadUrl}}
     </div>
     <div class='bottom-row'>
      {{category-link topic.category}}
      {{discourse-tags topic mode="list"}}
     </div>
    </div>
    <div class='topic-stats'>
     {{raw "list/posts-count-column" topic=topic tagName="div"}}
     <div class="topic-last-activity">
      <a href="{{topic.lastPostUrl}}" title="{{topic.bumpedAtTitle}}">{{format-date topic.bumpedAt format="tiny" noTitle="true"}}</a>
     </div>
    </div>
    </script>
    <script>
    Discourse._registerPluginCode('0.8', function (api) {
      api.changeWidgetSetting('post-avatar', 'size', '90');
    });
    </script>


    <script type='text/x-handlebars' data-template-name='list/topic_list_item.raw'>

      <td class='main-link clearfix'>
        {{raw "topic-status" topic=topic}}
        {{topic-link topic}}

        {{#if controller.showTopicPostBadges}}
          {{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}}
        {{/if}}

        {{raw "list/topic-excerpt" topic=model}}

        <div class='creator'>
            {{#if showCategory}}
                {{category-link topic.category showParent="true" onlyStripe="true"}}
            {{/if}}

            {{~#if topic.creator ~}}
                <a href="/users/{{topic.creator.username}}" data-auto-route="true" data-user-card="{{topic.creator.username}}">{{topic.creator.username}}</a>
                &nbsp;
                {{format-date topic.createdAt format="medium-with-ago"}}
            {{~/if ~}}
            
            {{raw "list/action-list" topic=topic postNumbers=topic.bookmarked_post_numbers className="bookmarks" icon="bookmark"}}
            {{raw "list/action-list" topic=topic postNumbers=topic.liked_post_numbers className="likes" icon="heart"}}
        </div>
      </td>

      {{#if controller.showLikes}}
        <td class="num likes">
          {{number topic.like_count}} <i class='fa fa-heart'></i>
        </td>
      {{/if}}

      {{#if controller.showOpLikes}}
        <td class="num likes">
          {{number topic.op_like_count}} <i class='fa fa-heart'></i>
        </td>
      {{/if}}

      <td class="num replies">
        {{topic.replyCount}}
      </td>
        <td class="last-post">
        <div class='poster-avatar'>
          <a href="{{topic.lastPostUr}}" data-user-card="{{topic.last_poster_username}}">{{avatar topic.lastPoster usernamePath="username" imageSize="small"}}</a>
        </div>
                  <div class='poster-info'>
          <a href="{{topic.lastPostUrl}}">
            {{format-date topic.bumpedAt format="medium-with-ago"}}
          </a>
         
          <span class='editor'><a href="/users/{{topic.last_poster_username}}" data-auto-route="true" data-user-card="{{topic.last_poster_username}}">{{topic.last_poster_username}}</a></span>
        </div>
        
      </td>
     
    </script>

![Captura|690x431](upload://5NCGUFAkjUcov0uZ3oOW3fNIQ8O.jpeg)

¡OMG! I can’t believe it, i did it … :heart:

Well done, looks great!

Congrats! Many is the time I’ve started a topic only to manage to figure out on my own.

:clinking_glasses:

Check out Mobile Category List Adjustments

Thank you very much, I’m going to check it out. :heart:

¡Thank you! :heart: :wink:

Congratulations! What joy you found in those 2 hours! :triumph:

¡Thanks! I was removing and putting back part by part until it was ready.