<commit_before><% title "Tin Sự Kiện" %>
<div class="main-container container list-event-page">
    <ul class="breadcrumb">
        <li><%= link_to '<i class="fa fa-home"></i>'.html_safe, erp_online_store.root_path %></li>
        <li><%= link_to "Tin Sự Kiện", "javascript:void(0)" %></li>
    </ul>
    
    <% if Erp::Products::Event.get_current_events.count > 0 %>
    <div class="row block-event">
        <div id="content" class="col-sm-12">
            <div class="about-us about-demo-1">
                <div class="event-tl">
                    <strong>SỰ KIỆN ĐANG DIỄN RA</strong>
                </div>
                <div class="row">
                    <% Erp::Products::Event.get_current_events.each_with_index do |event,index| %>
                        <div class="col-lg-6 col-md-6">
                            <div class="module banners-effect-1">
                                <h3>Diễn ra từ: <span class="date-event"><%= event.from_date.strftime('%d/%m/%Y') %> - <%= event.to_date.strftime('%d/%m/%Y') %></span></h3>
                                <div class="banners">
                                    <div>
                                        <%= link_to image_tag(event.image_url.thumb570222, alt: ""), event_link(event), title: "#{event.name}" %>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%= '</div><div class="row">'.html_safe if index%2 == 1 %>
                    <% end %>
                </div>
            </div>
        </div>
    </div>
    <% end %>
    <% if Erp::Products::Event.get_past_events.count > 0 %>
    <div class="row block-event">
        <div id="content" class="col-sm-12">
            <div class="about-us about-demo-1">
                <div class="event-tl">
                    <strong>SỰ KIỆN ĐÃ KẾT THÚC</strong>
                </div>
                <div class="row">
                    <% Erp::Products::Event.get_past_events.each_with_index do |event,index| %>
                        <div class="col-lg-6 col-md-6">
                            <div class="module banners-effect-1">
                                <h3>Diễn ra từ: <span class="date-event"><%= event.from_date.strftime('%d/%m/%Y') %> - <%= event.to_date.strftime('%d/%m/%Y') %></span></h3>
                                <div class="banners">
                                    <div>
                                        <%= link_to image_tag(event.image_url.thumb570222, alt: ""), event_link(event), title: "#{event.name}" %>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%= '</div><div class="row">'.html_safe if index%2 == 1 %>
                    <% end %>
                </div>
            </div>
        </div>
    </div>
    <% end %>
    <% if Erp::Products::Event.get_current_events.count == 0 and Erp::Products::Event.get_past_events.count == 0 %>
        <div class="alert alert-warning">
            <i class="fa fa-warning"></i> Hiện danh sách sự kiện chưa có.
        </div>
    <% end %>
</div><commit_msg>display coming events for list events page<commit_after><% title "Tin Sự Kiện" %>
<div class="main-container container list-event-page">
    <ul class="breadcrumb">
        <li><%= link_to '<i class="fa fa-home"></i>'.html_safe, erp_online_store.root_path %></li>
        <li><%= link_to "Tin Sự Kiện", "javascript:void(0)" %></li>
    </ul>
    
    <% if Erp::Products::Event.get_future_events.count > 0 %>
    <div class="row block-event">
        <div id="content" class="col-sm-12">
            <div class="about-us about-demo-1">
                <div class="event-tl">
                    <strong>SỰ KIỆN SẮP DIỄN RA</strong>
                </div>
                <div class="row">
                    <% Erp::Products::Event.get_future_events.each_with_index do |event,index| %>
                        <div class="col-lg-6 col-md-6">
                            <div class="module banners-effect-1">
                                <h3>Diễn ra từ: <span class="date-event"><%= event.from_date.strftime('%d/%m/%Y') %> - <%= event.to_date.strftime('%d/%m/%Y') %></span></h3>
                                <div class="banners">
                                    <div>
                                        <%= link_to image_tag(event.image_url.thumb570222, alt: ""), event_link(event), title: "#{event.name}" %>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%= '</div><div class="row">'.html_safe if index%2 == 1 %>
                    <% end %>
                </div>
            </div>
        </div>
    </div>
    <% end %>    
    <% if Erp::Products::Event.get_current_events.count > 0 %>
    <div class="row block-event">
        <div id="content" class="col-sm-12">
            <div class="about-us about-demo-1">
                <div class="event-tl">
                    <strong>SỰ KIỆN ĐANG DIỄN RA</strong>
                </div>
                <div class="row">
                    <% Erp::Products::Event.get_current_events.each_with_index do |event,index| %>
                        <div class="col-lg-6 col-md-6">
                            <div class="module banners-effect-1">
                                <h3>Diễn ra từ: <span class="date-event"><%= event.from_date.strftime('%d/%m/%Y') %> - <%= event.to_date.strftime('%d/%m/%Y') %></span></h3>
                                <div class="banners">
                                    <div>
                                        <%= link_to image_tag(event.image_url.thumb570222, alt: ""), event_link(event), title: "#{event.name}" %>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%= '</div><div class="row">'.html_safe if index%2 == 1 %>
                    <% end %>
                </div>
            </div>
        </div>
    </div>
    <% end %>
    <% if Erp::Products::Event.get_past_events.count > 0 %>
    <div class="row block-event">
        <div id="content" class="col-sm-12">
            <div class="about-us about-demo-1">
                <div class="event-tl">
                    <strong>SỰ KIỆN ĐÃ KẾT THÚC</strong>
                </div>
                <div class="row">
                    <% Erp::Products::Event.get_past_events.each_with_index do |event,index| %>
                        <div class="col-lg-6 col-md-6">
                            <div class="module banners-effect-1">
                                <h3>Diễn ra từ: <span class="date-event"><%= event.from_date.strftime('%d/%m/%Y') %> - <%= event.to_date.strftime('%d/%m/%Y') %></span></h3>
                                <div class="banners">
                                    <div>
                                        <%= link_to image_tag(event.image_url.thumb570222, alt: ""), event_link(event), title: "#{event.name}" %>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%= '</div><div class="row">'.html_safe if index%2 == 1 %>
                    <% end %>
                </div>
            </div>
        </div>
    </div>
    <% end %>
    <% if Erp::Products::Event.get_current_events.count == 0 and Erp::Products::Event.get_past_events.count == 0 and Erp::Products::Event.get_future_events.count == 0 %>
        <div class="alert alert-warning">
            <i class="fa fa-warning"></i> Hiện danh sách sự kiện chưa có.
        </div>
    <% end %>
</div>
{'fraction_non_alphanumeric': 0.16537237428389562, 'fraction_numerical': 0.011712285168682368, 'mean_word_length': 1.2445714285714287, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 216, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3519126', 'n_tokens_mistral': 2544, 'n_tokens_neox': 2297, 'n_words': 419}