@(cluster: HotelClusterInfo) @import ru.yandex.tours.hotels.amendings._ @import views.html.hotels.cluster.hotel_ref @if(cluster.amendments.nonEmpty) { @for(amending <- cluster.amendments) { @util.ya_login(cluster.transactionAuthor(amending.transactionId)) @amending.amending match { case AddFeatureAmending(hotelId, _, name, values @_*) => { added feature @name to hotel @hotel_ref(hotelId, cluster) with values @values.mkString(", ") } case SetPointAmending(hotelId, _, point) => { changed coordinates to @{point.getLatitude}, @{point.getLongitude} for hotel @hotel_ref(hotelId, cluster) } case SetHotelTypeAmending(hotelId, _, tpe) => { changed type to @tpe for hotel @hotel_ref(hotelId, cluster) } case SetGeoIdAmending(hotelId, _, geoId) => { attached hotel @hotel_ref(hotelId, cluster) to @views.html.common.region_link(geoId) } case SetHotelName(hotelId, _, lang, value) => { changed hotel @hotel_ref(hotelId, cluster) @lang name to "@value" } case DeleteHotelName(hotelId, _, lang) => { deleted hotel @hotel_ref(hotelId, cluster) @lang name } case f => { @f.toString } }
} } else { Нет изменений }