 				guard resolutionVersion.id > 0 else {
 					throw StORMError.noRecordFound
 				}
-				
+
 				values["resolution_version"] = ResolutionVersion.resolutionVersionsToDictionary( [ resolutionVersion ] )
 			}
-			
-			
-			
-			response.render(template: "editresolution", context: values)
+
+			
+			
+			response.render(template: "resolution", context: values)
 			
 		} catch {
-			response.render(template: "/editresolution", context: ["flash": "An unknown error occurred."])
+			response.render(template: "resolution", context: ["flash": "An unknown error occurred."])
 		}
 	}
 

			// Get all resolution versions too
			let resolutionVersions = try ResolutionVersion.getResolutionVersions(matchingResolutionId: id)
			values["resolution_versions"] = ResolutionVersion.resolutionVersionsToDictionary( resolutionVersions )
			
			// Get latest version, or specified version
			
			if let versionString = request.urlVariables["version"]

					guard resolutionVersion.id > 0 else {
						throw StORMError.noRecordFound
					}

				
					values["resolution_version"] = ResolutionVersion.resolutionVersionsToDictionary( [ resolutionVersion ] )
				}
				else
				{
					response.completed(status: .badRequest)
					return

				}
			}
			// If we couldn't parse, or find given ID, get the lastest version.
