Form kosmetik

This commit is contained in:
Thomas Blazek
2013-08-19 17:59:29 +02:00
parent 5c83d36ea5
commit 9c1eff6bec
6 changed files with 39 additions and 7 deletions

View File

@@ -21,9 +21,15 @@ class Semester < ActiveRecord::Base
def name
if self.nummer == 0
return I18n.t("ohnezuordnung") + " (" + self.studium.name + ")"
else
else
return self.nummer.to_s + ". " + self.studium.name
end
end
end
def name_kurz
if self.nummer == 0
return I18n.t("ohnezuordnung") + " (" + self.studium.abkuerzung + ")"
else
return self.nummer.to_s + ". " + self.studium.abkuerzung
end
end
end