refactor: Move merit history logic to include
This commit is contained in:
1 parent
52010b7f58
commit
ff8312bbce
2 files changed
+5
-7
No files matched your search
@@ -1,15 +1,11 @@
|
||||
---
|
||||
layout: default # Assuming 'default' is your base layout
|
||||
---
|
||||
<div class="container mx-auto px-4 py-8">
|
||||
<h1 class="text-2xl font-bold text-text-title mb-6">{{ page.title | default: "Merit History" }}</h1>
|
||||
|
||||
<!-- Filter and Sort Controls -->
|
||||
<div class="mb-6 p-4 bg-gray-100 rounded-md">
|
||||
<div class="mb-6 bg-gray-100 rounded-md">
|
||||
<div class="flex flex-col sm:flex-row justify-between items-center space-y-4 sm:space-y-0">
|
||||
<!-- Filter by Type -->
|
||||
<div class="filter-controls flex flex-col space-y-3 sm:flex-row sm:space-y-0 sm:space-x-2 sm:items-center">
|
||||
<span class="text-sm font-medium text-gray-700 mr-2 hidden sm:inline">Filter by:</span>
|
||||
<button data-filter="all" class="merit-filter-btn w-full sm:w-auto flex items-center justify-center space-x-2 p-3 border-2 border-primary bg-primary/10 rounded-md hover:border-primary transition-colors">
|
||||
<span class="text-sm font-action font-medium text-primary">All</span>
|
||||
</button>
|
||||
@@ -107,4 +103,3 @@ layout: default # Assuming 'default' is your base layout
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{{ content }}
|
||||
+4
-1
@@ -1,7 +1,10 @@
|
||||
---
|
||||
layout: merits
|
||||
layout: simple
|
||||
title: "My Merit History"
|
||||
permalink: /merits/
|
||||
# This page will display a list of merit activities.
|
||||
# Filters and sorting options will be available to navigate the history.
|
||||
---
|
||||
|
||||
{% include merits.liquid %}
|
||||
|
||||
Reference in new issue
Block a user