Sha256: c6ba27518d87b4c80ffaaa30d1dd5cba5ea227e6ecf5340aaaad56145616c8b7
Contents?: true
Size: 1.39 KB
Versions: 3
Compression:
Stored size: 1.39 KB
Contents
require_dependency "mystro_volley/application_controller" class MystroVolley::HomeController < ApplicationController include MystroVolley::ApplicationHelper def index @projects = MystroVolley::Project.all @myversions = MystroVolley::Version.desc(:timestamp).where(latest: true) #render "mystro_volley/versions/index" end def show p = params[:project] b = params[:branch] v = params[:version] if p @project = MystroVolley::Project.where(name: p).first if @project if b @branch = @project.branches.where(name: b).first if @branch if v @version = @branch.versions.where(name: v).first if @version return render "mystro_volley/versions/show" else return render "mystro_volley/branches/show" end else return render "mystro_volley/branches/show" end else return render "mystro_volley/projects/show" end else return render "mystro_volley/projects/show" end else @myversions = MystroVolley::Version.desc(:timestamp).where(latest: true) render "mystro_volley/versions/index" end else @myversions = MystroVolley::Version.desc(:timestamp).where(latest: true) render "mystro_volley/versions/index" end end end
Version data entries
3 entries across 3 versions & 1 rubygems