George S. Baugh 5 years ago
parent
commit
312a7479ae
3 changed files with 3 additions and 3 deletions
  1. 1 1
      lib/Trog/DataModule.pm
  2. 1 1
      www/templates/config.tx
  3. 1 1
      www/templates/posts.tx

+ 1 - 1
lib/Trog/DataModule.pm

@@ -102,7 +102,7 @@ sub filter ($self, $query, @filtered) {
     # If an ID is passed, just get that (and all it's prior versions)
     if ($request{id}) {
         @filtered = grep { $_->{id} eq $request{id} } @filtered   if $request{id};
-        @filtered = _dedup_versions($request{version}, @filtered) if defined $request{version};
+        @filtered = _dedup_versions($request{version}, @filtered);
         return @filtered;
     }
 

+ 1 - 1
www/templates/config.tx

@@ -19,7 +19,7 @@ If for example, you use mysql it will have to rely on either a local server, val
     Data Model:
     <select class="cooltext" name="data_model">
         : for $data_models -> $dm {
-        <option value="<: $dm :>"><: $dm :> <: if ( $current_data_model == $dm ) { :>selected<: } :> </option>
+        <option value="<: $dm :>" <: if ( $current_data_model == $dm ) { :>selected<: } :> ><: $dm :></option>
         : }
     </select>
     </div>

+ 1 - 1
www/templates/posts.tx

@@ -37,7 +37,7 @@
             <h3 class='blogtitles'>
                 <a ><a href='<: $post.href :>' ><: $post.title :></a>
                 <a class="undecorated" href='/posts/<: $post.id :>'>🔗</a>
-                : if ( $post.version_max ) {
+                : if ( $post.version_max && !$rss ) {
                 <form method="GET" action="/posts/<: $post.id :>" style="float:right;">
                     <select id="<: $post.id :>-<: $post.version :>-version" name="version" class="coolbutton">
                         : for [0..$post.version_max] -> $version {