From fa75a1970d0fbcd4f401ab8eaf3e2c589e00f932 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 13 May 2015 15:56:25 -0400 Subject: [PATCH] united subcategory and categories into one partial, requires tjs 0.2x --- templates/categories.tpl | 34 +----------- templates/partials/categories/item.tpl | 33 ++++++++++++ templates/partials/categories/lastpost.tpl | 14 ++--- templates/partials/categories/link.tpl | 10 ++-- templates/partials/category/subcategory.tpl | 60 +-------------------- 5 files changed, 47 insertions(+), 104 deletions(-) create mode 100644 templates/partials/categories/item.tpl diff --git a/templates/categories.tpl b/templates/categories.tpl index ffc240a..6a54452 100644 --- a/templates/categories.tpl +++ b/templates/categories.tpl @@ -2,38 +2,6 @@

Categories

-
  • - - -
    - - -

    -
    - {categories.description} -

    -
    - - - - -
    - -
    - -
    -
    -
    -
    - -
  • + \ No newline at end of file diff --git a/templates/partials/categories/item.tpl b/templates/partials/categories/item.tpl new file mode 100644 index 0000000..1704278 --- /dev/null +++ b/templates/partials/categories/item.tpl @@ -0,0 +1,33 @@ +
  • + + +
    + + +

    +
    + {../description} +

    +
    + + + + +
    + +
    + +
    +
    +
    +
    + +
  • \ No newline at end of file diff --git a/templates/partials/categories/lastpost.tpl b/templates/partials/categories/lastpost.tpl index 15650ad..ec7a8e8 100644 --- a/templates/partials/categories/lastpost.tpl +++ b/templates/partials/categories/lastpost.tpl @@ -1,25 +1,25 @@ -
    +

    - {categories.posts.user.username} -

    - {categories.posts.content} + {../content}
    - +
    No new posts.
    - +
    \ No newline at end of file diff --git a/templates/partials/categories/link.tpl b/templates/partials/categories/link.tpl index 7f7f3a7..0ded4f5 100644 --- a/templates/partials/categories/link.tpl +++ b/templates/partials/categories/link.tpl @@ -1,7 +1,7 @@ - - \ No newline at end of file diff --git a/templates/partials/category/subcategory.tpl b/templates/partials/category/subcategory.tpl index 6182ab2..f5b2c34 100644 --- a/templates/partials/category/subcategory.tpl +++ b/templates/partials/category/subcategory.tpl @@ -3,65 +3,7 @@
      -
    • - - -
      - - -

      - -
      - {children.description} -

      -
      - - - - -
      -
      - - -

      - {children.posts.user.username} - -

      -
      - {children.posts.content} -
      - - - - -
      - No new posts. -
      - -
      -
      - -
      -
      -
      -
      - -
    • +
    \ No newline at end of file