Full navigation is working including viewing individual photos.
[photos] / src / main / java / org / wamblee / photos / wicket / HomePage.java
index a5d42faaa194aa655e12545e9a85f121a353c474..95290d34dd93dd021180864ef7afd2e70d95ebc0 100644 (file)
@@ -111,11 +111,9 @@ public class HomePage extends BasePage {
         PhotoEntry current = authorized.getEntry(path);
 
         if (current instanceof Photo) {
-            throw new RuntimeException("Photo entry viewing not yet implemented");
+            add(new PhotoPanel("content", parameters));
+        } else {
+            add(new AlbumPanel("content", parameters));
         }
-
-        Album album = (Album) current;
-
-        add(new AlbumPanel("content", parameters));
     }
 }
\ No newline at end of file